Navigation\Tabs Set Active Tab

Navigation\Tabs Set Active Tab

  

Hi,

I am using  Navigation\Tabs in my web application.

I want to retain the last selected tab if i come from another page.

Is it possible to do that. Since i didn't see any option do that.

Can anyone guide me on this?


Hi Sekar.

You can add an input to the screen with the current tab and use it to do what you need.

Cheers

Hi Gonaclo,

Thanks for the reply. for active tab variable i have added in session.

But my question is how to change the values of the variable when i click the tab.

Gonçalo Martins wrote:

Hi Sekar.

You can add an input to the screen with the current tab and use it to do what you need.

Cheers



Hey Sekar,

sorry, just to be sure that I understand your question: 

Imagine that you have the 3 tabs, do you want to be able to click a button (for example) that goes directly from the first one to the last one? 

Or did I misunderstand?

Hello Rita,

Like in Menu1  i have the tabs, currently i am in Tab3, 

now i am moving to menu called Menu2.

When i click Menu1 again i want load Tab3.



Hey Sekar!

So, I have a solution. The thing is, it only works with a new version of the tabs that we have in the words and so it's not out yet! So, when the new version of Silk Web comes out I will be able to give you a solution for this, as it is right now I'm drawing blank, sorry :') 

I will try to think of something and if I come up with a solution I'll post it here!

Solution

Hello Rita,

I am able to achieve this by adding one variable for Tabid.

When i click on the tab i will change the tab id, then i will refresh the tab content.

Inside the tab content i added if block to check which webblock has to load.



Solution