Manage Learn to apply best practices and optimize your operations.

Messagebox: Function Vs Statement

Most of us don't use the full functionality available to us in the MessageBox function, instead using the Statement - possibly because of the sparseness of the Notes Help description - and therefore don't take advantage of the Function's ability to Return the value of the button the user selects. Here's a real world example that might help... Say you have a form that includes some checks on closing or saving and, depending on what the intentions of the user are, you'd like to program a messagebox to trigger a different event, depending on the user's input. In this example, the form contains Employee data of differing types. Type A is Business Info (Name, Phone number, etc.) and Type B is Business Requirements (need a Network ID? Notes ID? Laptop?) Both Types use workflow BUT only under specific conditions, i.e. there are times when additional info may be added to the document that does not require any notification through the workflow. Therefore the requirement is to: Check to see if the document is being submitted to workflow and if not, query the user for confirmation that this operation is an information update only. Here's how:

Dig Deeper on Domino Resources - Part 5

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...