I have a main view containing 3 tabs, along with an embedded view. The requirement is for the embedded view to permanently display the "Outside Plant" tab without requiring any user interaction.
Could anyone advise on the best approach to achieve this in Perspective?
You can change the currentTabIndex to 1, and it will default to Outside Plant tab.
A better way is to create a custom parameter with a value 1, and bindcurrentTabIndex to it. That way, even if you click other tabs in designer while making edit, it'll still default to Outside Plant later.
On view launch set tab index to 1.
You can also try setting tabs to disabled if you only want them access to the Outside plant tab. Then they can't toggle to a different tab if that's what you're asking.
Thank you for the reply! What I meant was:
-
My main view must always remain on the Inside Plant tab
-
My embedded view must always display the Outside Plant tab only
Change your tabs array to an array of objects, each containing keys for text (string matching current tab name) & disabled (boolean). Consider also adding a runWhileHidden (= False) property.
Read the first entry for tabs under Perspective Tab Container - Properties for additional info.
From there, plan to pass a parameter in to your embedded view which you will bind to within these new disabled properties (perhaps also the currentTabIndex prop) to achieve your goal.
