Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7442 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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?

confused.gif

Posted

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.

  • 2 weeks later...
Posted

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.

Posted

Instead of a straight Perform Find [Restore], use

Enter Find Mode [ ]

Set Field [yourfield, "==*" & Get(ScriptParameter)]

Perform Find [ ]

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.