Jump 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 and -script.param query parameters

Featured Replies

Once again I am back to this esteemed FileMaker forum for a bit of help. Any assistance will be greatly appreciated.

I am using the -script and -script.param query parameters to run a FileMaker script and pass parameters to that script.

My question is how do I access these parameters in my script??.........Ray

Do you mean when you select Button setup, and select Perform script from the list, press Specify; and from the dialog box choose the script you want to use; then add your optional script parameter in the space below? Or do you mean something completely different?

  • Author

efen, thanks for your reply, I will try to clarify.

In my XSLT page I use a form that creates a new registration and executes a script after the (-new) query command completes. The form has a (-script.param) that passes a parameter to the script in the FileMaker table. My question is how do I access/use this parameter......Ray

Try the Get(ScriptParameter) function.

  • Author

That was the "comment" I was looking for!! Many thanks..............Ray

  • Author

Finally had a chance to try the -script and -script.param parameters with the get(scriptparameter) function and have not been able to retrieve the passed parameter.

Here is the form I am using in my XSLT page that executes the FileMaker script:

=========================================

event_added.xsl

[color:red]

=======================================

Here is the FileMaker script that is executed:

===============================

Allow User Abort [On]

Set Field [Web_TA-Registration_DB::EventIDVar; Get ( ScriptParameter )

===============================

I have placed the EventIDVar field in the specified layout and the passed parameter does not display after the script executes. Any assistance will be greatly appreciated....Ray

Edited by Guest

  • 2 weeks later...
  • Author

Update:

This [color:orange][color:blue]xsl page coding works with the script below. The parameter is passed correctly.

=======================================

[color:red]

=======================================

Here is the [color:orange][color:blue]FileMaker script that executes correctly:

===============================

[color:red]Allow User Abort [On]

[color:red]Set Variable [$VarTest; Value: Get( ScriptParameter )]

===============================

The problem that I am having now is I want to pass a parameter with delimited fields and parse the parameter in the script. What do I use for the delimiter designation and what do I use to parse this parameter in the script.

Any assistance will be greatly appreciated…….

Create an account or sign in to comment

Important Information

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

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.