문제

I have defined an action with the following two commands:

@Prompt([...]; "1");
@Command([ToolsRunMacro];"(AGENT)");
@Prompt([...]; "2");
@If(@GetProfileField("PrivateProfile";"LENGTH";@UserName))>0;@PostedCommand([Compose];"FORM");"");
@Prompt([...]; "3");

But with the @Prompt commands I found out, that first of all each of the @Promptmessages (1-3) are displayed and after that the AGENT runs. But as the AGENT manipulates the LENGTHfield, the @IF statement compares an 'obsolete' value.

Maybe each statement is executed at once? If yes: how can I prevent the agent from this behavior?

I would appreciate any help!

도움이 되었습니까?

해결책

The [ToolsRunMacro] command will always run after all @Functions have executed first. There is no way to change this.

You can get a list of what commands will execute straight away vs after other functions that execute at the end, in the infocenter documentation.

http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/topic/com.ibm.designer.domino.main.doc/H_COMMAND.html

Also something to be aware on your code is that Profile documents are cached. So you might not in all cases see any changes made to the document straight away.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top