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.

get(scriptparameter) question

Featured Replies

Hi,

I am puzzling over the new Script parameter functions. I wish to have one script that functions across multiple tables, which uses SET FIELD in whatever the current table is. I know that I need to somehow pass Get(LayoutTableName) into it, but cannot figure out how to do so. Could anyone advise? I know it is a basic concept, but I am missing something. :

many thanks!

julia

well, good thing about filemaker is the script steps functions like you would making something to eat...

just as you would click there, go to that layout, enter a find, put in the criteria, perform the find by hitting enter, getting the data, switching the layout... ect.. it is the same as a script maker. Think of how it has to run just as you were going to do it manually...

but a script param. is really cool because it works as both a text input, or a field input... very flexible that way.

If you needed that script to perform differntly on, say a templated layouts, like if you had 10 layouts but only 3 tables and those 10 layouts there are only 2 types of layouts... then you could use an "if" statement that would use the Get(LayoutTableName)

and make it = "invoice", ect...

then perform the script, punch in the param. function and away you go.

If you give us more detail as to what you want it to do, then we can give you a more indepth example.

  • Author

Hi there,

Thanks for the reply. I'm still a little confused; I'm not sure how to pass in the current table's name without actually hard-coding it into the script (which then means that each table requires a different script).

Any advice? Sorry, it is probably a simple answer that I am completely overlooking!

thanks,

julia

Edited by Guest

well, it isn't so much the get(table) ect... because the layout uses the data from a specific table. So, what ever your layout you are on, is where it will use the data to continue the script.

Really just give us an idea of what you want to do, I mean, the project. you want a script that is universal, and using the parameter to set a field... that is really vague. Is it to perform data enty, find, report making, pass on information, ect...

I use a report script that makes reports on a find request of records. I only have one script but I use the parameter to basically find the records I want in the report. So I use it as a text box, then in the scriptI use set field Get ( ScriptParameter )... do you mean you want the parameter to be a layout to go to?

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.