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

On Opening a layout


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

Recommended Posts

Posted

Advice needed please.

I want my cursor to go to a certain field when the layout it belongs to is opened.

I thought there may of been some sort of on open section in scriptmaker to tie it to the layout but cannot find anything there.

Thanks in advance

h

Posted

The Go to Field instruction should work.

You could use a generic script with some script parameters to determine the layout and field.

Posted

Thanks for the reply IdealData.

I understand that the go to field script will do its job. But this way would mean me duplicating this script for every layout I want to reach from the buttons on my main page.

Pity there was not an option in layout setup that would place the cursor in the field choosen on layout open.

Thanks for the reply again though

h

Posted

Your navigation buttons should be tied to scripts. The scripts then can switch the layout and go to a field.

Posted

But this way would mean me duplicating this script for every layout I want to reach

A single script can do it all:

Go to Layout [ Get ( ScriptParameter ) ]

Go to Next Field

This will switch to the layout specified in the script parameter, then move to the first field in the layout's tab order.

Posted

Thanks for all replys

I will upload my database and hope one of you good guys can tell me if I am doing ok so far. Please understand this is my first atempt at a filemaker database after quite a lot of reading and veiwing vids.

Tips welcome :

I have tied to of my butons so far to their own script to help send the cursor to my search field on openig of the layout

h

test_v1.zip

Posted

every layout is given a number. I.e. the number of your specific layout is seven and the fieldname you want the cursor to get in ist "field_A". Try this:

if

Get(LayoutNumber) = 7

GoTo (field_A)

end if

(I use german version of FM, so I#m not sure, that english functions are spelle coorrectly)

Posted

Ahh!

So thats how its done. I'm learning more as I go along.

Hey thanks raybaudi. Nice of you to take the time to sort me out. :waytogo:

h

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