FORMULA LANGUAGE


Examples: @Do
This formula displays a dialog box asking whether the user wants to edit the current document. If the user selects Yes, another dialog box appears, prompting for the user's name. If the user now selects Cancel, the formula stops execution; if the user enters a name and selects OK, the document is opened in Edit mode.

If the user selects No at the first dialog box, a different one follows it. This time, a message appears noting that the user chose not to edit the document, and Lotus Domino navigates to the next document in the view.

@If(@Prompt([YESNO]; "Question";
"Edit this document?");
@If(@Prompt([OKCANCELEDIT]; "Positive Response";
"You have chosen to edit this document. Select OK if the name below is correct.";
@UserName) != "ERR_CANCEL";
@Command([EditDocument]);@Return(""));
@Do(@Prompt([OK]; "Negative Response";
"You have chosen not to edit this document. Select OK to continue to the next document.");
@Command([NavNext])))

See Also