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

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

Recommended Posts

Posted

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

Posted

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.

Posted (edited)

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
Posted

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?

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