Jump to content

Tab Panels- back to last active panel


Answers

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

Recommended Posts

Hi All,

Basically the layout we have has many tab panels, and I have a forward and back button that navigates through the layouts. What they would like is when they come back to this layout it goes to the last tab panel (s) they were out. I would think a script that stores the isfrontpanel (layoutobjectattribute) in a merge variable but I am having a hard time figuring this out. It seems like it should be simpler and perhaps my brain isn't working correctly this morning (it happens! Lol). Can't see the forest for the trees.

I included a screen shot as an example. 

Screen Shot 2019-04-18 at 10.43.35 AM.png

Link to comment
Share on other sites

I would give each panel an object name and attach an OnPanelSwitch script trigger to the tab control object, doing:

Set Variable [ $$targetPanel; Value:Get(TriggerTargetPanel) ]

Then attach an OnLayoutEnter script trigger to the layout, doing:

Go to Object [ Object Name: GetValue ( $$targetPanel ; 2 ) ]

Note that this memory lasts for the duration of the current session only.

 

 

Edited by comment
  • Like 1
Link to comment
Share on other sites

51 minutes ago, comment said:

I would give each panel an object name and attach an OnPanelSwitch script trigger to the tab control object, doing:


Set Variable [ $$targetPanel; Value:Get(TriggerTargetPanel) ]

Then attach an OnLayoutEnter script trigger to the layout, doing:


Go to Object [ Object Name: GetValue ( $$targetPanel ; 2 ) ]

Note that this memory lasts for the duration of th current session only.

Okay, great thank you! I was headed in the right direction, the OnLayoutEnter I missed. I will try it and let you know how it goes.

Caroline

Link to comment
Share on other sites

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