Domino Code Fragment

Code Name*
Toggling view action buttons
Date*
04/28/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.18.118.184.237
Description*
Ever have a situation where you have too many buttons in the view action bar? Using a toggling mechanism helps to "compartamentalize" view action buttons according to their functionality. For example, in a sales application, you may have buttons that would help display only profiles, such as company or contact. You also may have buttons to display actions, such as creating letters, or new contacts.
Type*
Formula
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
To see this in action, refer to the SICAV Tracker database, view Company/ by firm. Also, as you may know, this type of environmental stuff will not work on the web. Javascript could be a solution, and I am researching that!
Files/Graphics attachments (if applicable): Code:
FIGURE 1

Pressing the Show Profiles action button in Figure 1above will display the action bar below in Figure 2

1. In the Show Profiles button, add the following formula:

@Environment("SicTrak_Main_ABar" ; "Actions");
@Command([RefreshHideFormulas])


This formula above, allows the user to toggle to the Show Actions view action bar (see figure 2)

2. Add the following formula to the Show Profiles button's Hide When tab and be sure to check the "Hide action if formula is true" checkbox:

 @Environment("SicTrak_Main_ABar" ) != "Actions" &  
@Environment("SicTrak_Main_ABar" ) != ""

3. Add the formula below to each button you want to show when you press the Show Profiles button. The formulas, in this example, have been added to each button in Figure 2, except for the Show Actions button. Add that formula to each button's Hide When tab, making sure you check the "Hide action if formula is true" checkbox:

@Environment("SicTrak_Main_ABar" ) != "Profiles"

FIGURE 2

Pressing the Show Actions button above in Figure 2 will display the action bar in Figure 1

1. In the Show Actions button, add the following formula:

@Environment("SicTrak_Main_ABar" ; "Profiles");
@Command([RefreshHideFormulas])


This formula above, allows the user to toggle to the Show Profiles view action bar (see figure 1)

2. Add the following formula to the Show Actions button's Hide When tab and be sure to check the "Hide action if formula is true" checkbox:

 @Environment("SicTrak_Main_ABar" ) != "Profiles" &  
@Environment("SicTrak_Main_ABar" ) != ""

3. Add the formula below to each button you want to show when you press the Show Actions button. The formulas, in this example, have been added to each button in Figure 1, except for the Show Profiles button. Add that formula to each button's Hide When tab, making sure you check the "Hide action if formula is true" checkbox:

@Environment("SicTrak_Main_ABar" ) != "Actions"