dbTalk Databases Forums  

custom menu: capture user selection in variable??

comp.databases.filemaker comp.databases.filemaker


Discuss custom menu: capture user selection in variable?? in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Darren Burgess
 
Posts: n/a

Default custom menu: capture user selection in variable?? - 02-25-2010 , 10:53 AM






Is there a function or technique for capturing the Custom menu
selection that a user makes? That is, if a user selects from my
Reports custom menu the "Admissions Audit" item, can I somehow capture
that menu title in a variable? I would then pass that variable into
the script called by the menu. Such could then be used to navigate to
the correct layout or whatever.

Reply With Quote
  #2  
Old   
Lynn Allen
 
Posts: n/a

Default Re: custom menu: capture user selection in variable??X-TraceApproved - 02-25-2010 , 12:44 PM






On 2010-02-25 07:53:19 -0800, Darren Burgess <darrenburgess (AT) cox (DOT) net> said:

Quote:
Is there a function or technique for capturing the Custom menu
selection that a user makes? That is, if a user selects from my
Reports custom menu the "Admissions Audit" item, can I somehow capture
that menu title in a variable? I would then pass that variable into
the script called by the menu. Such could then be used to navigate to
the correct layout or whatever.
When you create your custom menu item, don't select a script for it to
perform, instead, select a Script Step, the script step is "Perform
Script" and include a script parameter to identify the item selected.

The script parameter can be stored in a variable to persist after the
script, or it can be used as is using the Get(ScriptParameter) function.

If you're not using script parameters in your scripting, you're missing
a lot of power.
--
Lynn Allen
--
www.semiotics.com
Member FBA
FM 10 Certified Developer

Reply With Quote
  #3  
Old   
Darren Burgess
 
Posts: n/a

Default Re: custom menu: capture user selection in variable?? - 02-25-2010 , 05:58 PM



good idea! I do use script parameters quite allot.

This leads to me to wonder how I might create a level of abstraction
for custom menus using the calculation engine for the menu title.

1. Localization?
2. Passing script parameters from the menu title?
3. Any other ideas?

Darren

Quote:
When you create your custom menu item, don't select a script for it to
perform, instead, select a Script Step, the script step is "Perform
Script" and include a script parameter to identify the item selected.

The script parameter can be stored in a variable to persist after the
script, or it can be used as is using the Get(ScriptParameter) function.

If you're not using script parameters in your scripting, you're missing
a lot of power.
--

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.