I want a different prompt to appear for each different mainprojectphase, when the users press’s a button.
Depending on what status the document is in, different things get blanked out when you use an update action…
So, I created the code, like this one:
FIELD Version:=Version;
FIELD UNID:=UNID;
FIELD MainProjectPhase:=MainProjectPhase;
FIELD Status:=Status;
tempvarforresult:=
@If(MainProjectPhase=“Requirements Gathering”;“Requirements Gathering”;
@If(MainProjectPhase=“SOX Impact”;
“Requirements Gathering”:“SOX Impact”;
@If(MainProjectPhase=“QA and Test Plans”;
“Requirements Gathering”:“SOX Impact”:“QA and Test Plans”;
@If(MainProjectPhase=“Testing”;
“Requirements Gathering”:“SOX Impact”:“QA and Test Plans”:“Testing”;
@If(MainProjectPhase=“Go Live”;
“Requirements Gathering”:“SOX Impact”:“QA and Test Plans”:“Testing”:“Go Live”;
“”;“”;“”)))));
result:=@Prompt([YesNoCancel]; “Are you sure?”; “Updating the Requirements will require the the following project phase’s to be reapproved: " + @Char(13) + tempvarforresult +”.");
But, the prompt is only ever bringing up ‘Requirements Gathering’…never anything else…
I created a test form with just two fields ‘MainProjectPhase’ and computed field based on the code above…it works then, e.g. depending what you select, the computed field is set to the right value???