2884
Views
6
Comments
Solved
Navigation\Tabs Set Active Tab
Question

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?


2017-09-19 10-08-14
Sekar
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.



2022-11-12 11-28-30
Gonçalo Martins
Staff

Hi Sekar.

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

Cheers

2017-09-19 10-08-14
Sekar

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



2018-01-16 15-07-33
Rita Dias
Staff

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?

2017-09-19 10-08-14
Sekar

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.



2018-01-16 15-07-33
Rita Dias
Staff

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!

2017-09-19 10-08-14
Sekar
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.



Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.