Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

custom menu: capture user selection in variable??

 
   Database Help (Home) -> FileMaker RSS
Next:  PAPER PRESENTATIONS AND SEMIMAR TOPICS.  
Author Message
Darren Burgess

External


Since: Feb 25, 2010
Posts: 2



(Msg. 1) Posted: Thu Feb 25, 2010 7:53 am
Post subject: custom menu: capture user selection in variable??
Archived from groups: comp>databases>filemaker (more info?)

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.

 >> Stay informed about: custom menu: capture user selection in variable?? 
Back to top
Login to vote
Lynn Allen

External


Since: Jan 10, 2008
Posts: 75



(Msg. 2) Posted: Thu Feb 25, 2010 9:44 am
Post subject: Re: custom menu: capture user selection in variable?? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2010-02-25 07:53:19 -0800, Darren Burgess said:

> 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

 >> Stay informed about: custom menu: capture user selection in variable?? 
Back to top
Login to vote
Darren Burgess

External


Since: Feb 25, 2010
Posts: 2



(Msg. 3) Posted: Thu Feb 25, 2010 2:58 pm
Post subject: Re: custom menu: capture user selection in variable?? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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

>
> 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.
> --
 >> Stay informed about: custom menu: capture user selection in variable?? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Files Missing from Windows Menu - I have recently finished a conversion from FM 5.5 files to FM 9 files. In using the newly converted solution, I'm running into a problem whereby when opening the startup file, various other files are opened (some open completely via script, others open a...

'Manage' option dimmed in File menu - need to get access t.. - I created a simple FMP 9 file, and somehow managed to get away from the Admin account - I can't find a way to re-enable the 'Manage' option in the File menu. I've poked around in the support docs, but everything I find keeps telling me to 'go to File -&g...

custom function: TrimCrlt - I have a custom function TrimCrlt which removes an extra carrage return at the end of a value: If (Right (value; 1) = "¶"; Middle (value; 1; Length(value) -1); value) How do I make this function dynamically to remove ALL (multiple) extr...

custom dialog and validation - RANT only. WinXp, FMP 9.1 adv Why should the scriptstep: Show Custom Dialog > Input Fields NOT keep itself to the validation for the input field? I can set a field that is validated to contain numbers only to anything I want without warning. So n...

How to insert quote into a variable - I need to replace all quotes with a null. This is necessary when importing a tab delimited file that has a few comma's which ar econverted to a quoted field. e.g. COPS, Inc. is changed to "COPS, Inc." In the replace dialog for a script step...
   Database Help (Home) -> FileMaker All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]