George TOUBALIS Posted July 2, 2004 Posted July 2, 2004 HI there! I have a portal with names I want to filter them via a classic method (mini buttons A,B,C,D,E,F.....) In version 6 of Fm I have to create a 26 buttons and 26 scripts set Field(Name_letter_key; "A")for the A button set Field(Name_letter_key; "B")for the B button etc Now in a Fm 7 With a new script parameter function I read that is possible to create only one script but with 26 different parameters (one per button) O.K fine.... but which is this parameter?: sorry but I don't understand the concept here... Any one please?
RalphL Posted July 2, 2004 Posted July 2, 2004 When you define the button you can define script parameters. For button A set the script parameter to A. For button B set the script parameter to B. and so on until for button Z set the script parameter to Z. In your scipt use the Get Script parameter function to get the value to use in the script.
George TOUBALIS Posted July 2, 2004 Author Posted July 2, 2004 I see... The function is Get(script parameter) thanx a lot!
E Gish Posted July 12, 2004 Posted July 12, 2004 I am now converting and want to do the same thing. I understand the passing of the paramter into the script and capturing it as well. I am placing the Get(ScriptParameter) = gLastNameLetter global field But then I want to execute a find on that letter as well.. e.g. "A" or "B" When I do the perform find script it asks for a field compared with a literal text such as "A"... what I want is LastNameLetter=glastNameLetter. Even if I do a relationship it is he same deadend. How do I match them up the LastNameLeter field with my gLastNameLetter field? or perhaps their is another way of doing it I am missing... This does seem simple, but I am not getting it fully. Thank you in advance for the help.
-Queue- Posted July 12, 2004 Posted July 12, 2004 Instead of a straight Perform Find [Restore], use Enter Find Mode [ ] Set Field [yourfield, "==*" & Get(ScriptParameter)] Perform Find [ ]
Recommended Posts
This topic is 7442 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now