How to recreate in your solution
To reproduce any of these buttons, enter layout mode and create a new button on your layout. Choose “Set Field” from the list of button steps. Click the “Specify” button next to the “Specify target field” check box. You can use any text field for this step, though you may want to create a special field named “Result” specifically for use with plug-ins. This makes it simple to view plug-in results be keeping an eye on this field. Finally, click the “Specify” button for the Calculated result. Try copying and pasting the example calculations discussed in this example to get you started.
To reproduce the “Beep” and “Beep Too” scripts, open the ScriptMaker and click the “New” button. Name the script “Beep” or “Beep Too”. For the purposes of this example, both scripts are virtually identical. The only differences are the dialog names. In a real life example, these scripts could do whatever you desire. Add the “Beep” script step, and then the “Show Custom Dialog” script step. With the “Show Custom Dialog” step selected, click the “Specify” button to set up the dialog. Set the title of the dialog to “The "Beep" script has been triggered…..” or “The "Beep Too" script has been triggered…..” depending one which script you are working on. Finally, set the calculation for the “Message” to the following code:
Case (
Get ( ScriptParameter ) ≠ “” ; Get ( ScriptParameter ) ;
“The "Beep" script has been triggered”
)
The above calculation simply checks to see if there is currently a ScriptParameter. If there is, it uses the ScriptParameter for the message. If the ScriptParameter is empty, then the default message is shown. Remember to use “Beep Too” for the “Beep Too” script.
