Client side selected Tab

Client side selected Tab

  
How can I change a client side selected tab in the Preparation action of a WebScreen?
Solution
Hi Paulo,

You could verify a specific condition using an inline expression in order to determine which tab should be opened initially. Here's a possible screen shot of a similar usage:


If there's something you must do on preparation you can validate that condition and assign the result to a variable which can then be checked.

Cheers,
Solution
Thank you Guilherme!

What if I want to choose the InitialTab only when a parameter value is present and Remember the Active Tab otherwise?

TIA
Hi Paulo,

The InitialTab is optional which means that you may use and empty string if you dont want to select a tab. Also the widget already has a parameter RememberActiveTab which allows for that but only during the Session.

If you want to remember across sessions then you must create a mechanism that stores the UserId and the active tab on the DB and then load it when necessary. The overhead for this approach is that you must implement also a javascript function to use on the OnTabActivation event.
This function could, for instance, trigger the click in an button that in turn would save the userid and active tab.

Cheers,