Jump to content
Server Maintenance This Week. ×

Keep on same active segment of button bar when reenter layout


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

Recommended Posts

Hello,

It always go to "Default segment button bar", set on the button bar setting, when reenter to layout.  I need to go to same segment when user was working on before he left the layout.

I know how to get back to last tab panel used, and I wonder if there would be similar for this.

Thanks a lot!

Luis.

Link to comment
Share on other sites

Hi Luis,

I would suggest two things:

  1. Don't leave the layout but rather open a new window, perform the work and then close the window.
  2. Use object name to identify each button in the button bar, capture that button name in script parameter and upon layout exit:  Set Variable [ $$buttonBar ; GetLayoutObjectAttribute ( Get ( ScriptParameter ) ; "content" )
  3. Upon returning to the layout, include script step of Go To Object [ $$buttonBar ]

You may wish to capture the value using OnLayoutExit and apply the step OnLayoutEnter but that would depend upon your use case.  It strikes me as odd that it is necessary to return to the same button but that is probably because I can't envision how the layout is used.

Edited by LaRetta
corrected script parameter
Link to comment
Share on other sites

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