Manage Learn to apply best practices and optimize your operations.

Creating An Action Button Presenting The User With A Dropdown List Of Options

This entry describes how to add an action button to the action bar, presenting
the user with a drop down list of options.
An example of this is the "Alternate Views of the Entries" button on the main
navigator menu.

I find it easier to have an action bar button run an agent rather than
including the code directly in the button formula.

I will use as an example the "Alternate Views of the Entries" button on the
main navigator menu of this database.
Pressing that button runs an agent: View of Entries that consists of the
following code..
<< First I show the user a list of options, recording their selection in sView>>
sView := @Prompt([OKCANCELLIST]; "Alternate Views of entries"; "Select to view
Entries ..."; "By Category";
"By Category":
"By Title":
"How to create a drop down like this !");

<< Based on the user's selection, I set up the view name>>
sView="By Title";"EntriesByTitle";
sView="By Category";"EntriesByCategory";
sView="How to create a drop down like this !";"HowTo";

<&LTIn this case I first check whether the use selected the "How To". If so, I
run another agent>>
@If (sViewName="HowTo";@Command([NavigateNext])+@Command([ToolsRunMacro]

<&LTIf Not, I change the view as requested>>

Dig Deeper on Lotus Notes Domino Administration Tools



  • 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 ...