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

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

Recommended Posts

Posted

i know this a dumb question but using a script how can you set a field to the value that was in the last layout you visitied

eg i start at Layout one and field one=2

i click a button it will set field one =2 in a different layout

Posted

Use a global field as a holder for the value, switch layout and set the field with the global value. Something like this:

# sets the global with the value from field one in layout 1 with

Set Field [ global ; field one ]

# switch to the next layout with

Go to Layout [ layout2 ]

# set field one in the new layout with the value from global with

Set Field [ field one ; global ]

# optional - use Go To Layout again to switch back.

# if you don't want to see this happen begin with Freeze Window.

Hope this helps.

Posted

Instead of storing the data from the first layout in a global field, you can also pass the data through the optional script parameter.

For example, in your script...

Go to Layout 2

Set Field [ fieldone ; Get (ScriptParameter ) ]

  • Newbies
Posted

Hi,

This is a related question: how can you do the same thing, but with related databases? I want to copy a field from the current record the user is entering into a field that is in another database.

eg-

enter data into tapes.fm7-field1

hit button to activate script that switches to titles.fm7 and creates new record in title.fm7.

copy tapes.fm7-field1 into titles.fm7-field1

Sorry if dumb, still trying to get my head around filemaker. Thanks.

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