I am calling script.execute from formatctrl ("rootcause")
in the script i am assigning a thread variable to the description with the timestamp and full name of the operator
$deschist=str(tod())+" ("+$lo.ufname+"):";description in $script=insert(denull(description in $script), 1, 1, $description.txt);description in $script=insert(description in $script, 1, 1, $deschist))
the problem here is, when i click add to create a Problem record, i can see the description field having the correct value, but after problem is created if i click Cancel and back out of screen and come back again the description field is empty
I found out that the Problem is actually getting saved before the script is executed from rootcause formatctrl. Is there a way to change the sequence ? Is it how this always works ?
Well, format control pre-dates the existence of the document engine (and state level processing), so prior to all modules being migrated to the doc engine (in versions 4, 5, and 5.1) the format control option was primary.
It appears that the document engine state "save first" will perform a similar function, but iI don't really know exactly how the state level "save first" interacts with format control. You'd have to run a RAD trace to get the complete flow or map through the RAD stack to be sure.