stefangs Posted October 25, 2010 Posted October 25, 2010 i have a layout with a tab control set. some fields show up in all tabs. in a script, i use 'go to field', but i'd like to stay on the currently active tab. but when the script executes, it always switches to the first tab and goes to the field there instead of just staying where it is. probably something simple (?). thanks, stefan
comment Posted October 25, 2010 Posted October 25, 2010 (edited) Go to Field[] goes to the first instance of the field in layout's stack order. If you always go to the same instance of the field, you could move the desired instance backwards;otherwise try using Go to Object[] instead. Edited October 25, 2010 by Guest won't work
efen Posted October 25, 2010 Posted October 25, 2010 Name your tabs and go to that named tag before going to the field
stefangs Posted October 25, 2010 Author Posted October 25, 2010 just about... i tried what you suggested, but perhaps didn't explain enough. the field in question is on all (three) tab panels. all panels are named objects. now, i execute a script which includes go to object [panel_name] and then go to field. so it might go to panel three, but on go to field switches to panel 1 all by itself to go to the field, even though that field *also* exists on panel three. looks like the order of panels is given priority as suggested above by comment. no big deal - guess i'll just click myself into the required field. stefan
bruceR Posted October 25, 2010 Posted October 25, 2010 Same advice still applies. Name the object and go to object.
stefangs Posted October 25, 2010 Author Posted October 25, 2010 unfortunately same answer applies to, but only for panels other than 1. say i go to panel one, then to field 1. all is well. next time i go to panel three, then to field 1. i'm being dumped back to panel one. of course, i could *now* go to panel three with an extra script step, but then the record is exited and i'm no longer inside the field. catch 22. stefan
comment Posted October 25, 2010 Posted October 25, 2010 You need to name your field instances, and go to them explicitly using Go to Object[]. The panel will be selected automatically.
stefangs Posted October 25, 2010 Author Posted October 25, 2010 ahhh, name the FIELD, not the PANEL. now i gotcha! yes, that works now. pardon my tunnel vision. thanks, stefan
Recommended Posts
This topic is 5143 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