grumbachr Posted August 24, 2009 Posted August 24, 2009 I've done some searching and some testing but I can't seem to get Get ( ActiveLayoutObjectName ) to do anything for me. My latest test is a very simple script. Show Custom Dialog [ Message: Get ( ActiveLayoutObjectName ); Buttons: “OK”, “Cancel” ] The script is run by clicking on a button that is on a tab panel that has an object name set. All I need is to know what tab panel is active.
comment Posted August 24, 2009 Posted August 24, 2009 A tab panel becomes active only when you tab into it. You should use the GetLayoutObjectAttribute() function instead - see: http://fmforums.com/forum/showtopic.php?tid/200703/
grumbachr Posted August 24, 2009 Author Posted August 24, 2009 I'm sure I'm missing something because its monday but I might be trying to get something thats not possible. I've even begun looking at Custom Functions but those don't seem to be what i need either. So I have a set of tab tab1, tab2, tab3 etc.. with matching Object Name. On each tab is an Edit button. When the edit button is clicked I'd like to open a new window and go to an edit layout that matches the corresponding tab name. What I pictured in my head was Show Related records in layout using a Calc where the Layout Name by calculation was "Get ( ActiveLayoutObjectName )" But I see that wont work. Unless I'm missing something I have to either specify a script parameter for each button or built in to the script something like If [ GetLayoutObjectAttribute ( "tab1" ; "isFontTabPanel" ) ] Do something Else If [ GetLayoutObjectAttribute ( "tab2" ; "isFontTabPanel" ) ] Do something else End If I love this many tab to single button thing to work because I picture having to had more tabs to the tab panel in the future and coping one button to do the edits would be idle.
comment Posted August 24, 2009 Posted August 24, 2009 I'm sure I'm missing something No, I don't think so. Unfortunately, there is no function that will return the name of the current front tab directly - though you could use a custom function for this, e.g. http://www.briandunning.com/cf/692
Recommended Posts
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