How to force a recalculate (OpenInsight)
At 15 FEB 2000 11:23:28AM Paxton Scott wrote:
on a form. Here is the situation:
I have a form with an edit table with a list of keys to other records
These other records each have a field for a dollar amount.
The main form, has a symbolic that sums up the dollar amounts from the other records whose keys are stored in the edit table.
Bring the form up, the symbolic calculates just fine and displays the sum.
Now, I want to launch a form containing one of the records from the "key list", form comes up fine, and I want to change the dollar amount that should be summed and changed on the parent form, but it does not. If I save the change to the 'sub' form/record and then save and redisplay the main record, the new, correct sum is displayed OK. But, I'd like to force the recalculation and display before saving. I've tried a lot of variations on sending the calculate event, but no luck. I must not understand something.
calc=send_event("CALCULATE",windowname.controlname,"EDITLINE", '')
Don't know what should go in the 'column number' parameter.
Any guidance apprectiated! arcs@arcscustomsoftware.com
[url=http://www.arcscustomsoftware.com/]ARCS, Inc.
At 16 FEB 2000 08:14AM Tony Marler @ Prosolve Software wrote:
Paxton
Try just
RetVal=Send_Event(@WINDOW:".MYTOTALFIELD" , "CALCULATE")
Tony