h123 Posted January 7, 2007 Posted January 7, 2007 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
IdealData Posted January 7, 2007 Posted January 7, 2007 The Go to Field instruction should work. You could use a generic script with some script parameters to determine the layout and field.
h123 Posted January 7, 2007 Author Posted January 7, 2007 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
Ender Posted January 7, 2007 Posted January 7, 2007 Your navigation buttons should be tied to scripts. The scripts then can switch the layout and go to a field.
comment Posted January 7, 2007 Posted January 7, 2007 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.
h123 Posted January 7, 2007 Author Posted January 7, 2007 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
musixer Posted January 7, 2007 Posted January 7, 2007 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)
h123 Posted January 7, 2007 Author Posted January 7, 2007 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. h
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now