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.

Pass parameter to a server-side script

Featured Replies

Hi,

I want to run a server-side script but don't know how to pass the parameter the script needs to perform. The script need todo the following go to layout, enter in find mode, set field, perform find, set field.

This link says that you can pass information about the client’s context to a server-side script by using the script parameter in the Perform Script On Server script step but I have no idea how, I need to learn how.
can someone guide me please
Thank you

https://www.filemaker.com/help/15/fmp/en/index.html#page/FMP_Help/running-scripts-on-server.html 

Hi Gilbert,

There's a tiny box when you double-click the script step (Perform Script on Server) called "optional script parameters":

5a834d650cc90_ScreenShot2018-02-13at12_40_59PM.thumb.png.256904b563c0c1b2858763d2e5494fd9.png

 

That is where you need to enter your parameter. It could be a variable ($variable) or just text in quotes.

Don't forget that you can't debug on the server, so you'll want to add error trapping very often and send yourself a mail if something can fail.

Also, you might want to Exit the server script with a parameter, if you need to pass it back to your original script: Exit Script (parameter). And in your original script then you'll have to get that parameter back by: Get (ScriptResult).

Hope this helps,

Agi

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.