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

-script and -script.param query parameters


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

Recommended Posts

Posted

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

Posted

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?

Posted

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

Posted (edited)

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...
Posted

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…….

This topic is 5377 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.