Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Script parameter

Featured Replies

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

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.

  • Author

I see...

The function is Get(script parameter)

thanx a lot!

  • 2 weeks later...

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.

Instead of a straight Perform Find [Restore], use

Enter Find Mode [ ]

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

Perform Find [ ]

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.