846
Views
11
Comments
Solved
How to Navigate tab using  button Click

I m Using Navigation/Tab in the Reactive Module, I Want to change the active tab using the Button. For example,

as Shown in the Fig , if by default my active tab is Tab1 when I hit Button "Go to Tab2" it will change to Tab2 and when in the tab2, I hit button "Go to Tab3" I want  tab will change to Tab3. It is Possible to do that ? Below I m Pasting Image For reference.

Thank you.

2021-03-18 21-03-15
Benjith Sam
 
MVP
Solution

Hi Akshay,

The OutSystemsUI module already does have a pre-defined client action available called TabsGoTo, for the mentioned use-case. Refer to the TabsGoTo client action from the OutSystemsUI module as shown below 


See this sample app | TabWidgetDemo

Refer to the attached .oml file


Hope this helps you!


Kind regards,

Benjith Sam

RWALabTabWidgetDemo.oml
2026-02-26 06-29-24
Rahul
 
MVP

Nice Benjith,


2021-03-18 21-03-15
Benjith Sam
 
MVP

Thanks, Rahul!

Glad to help :)


Best regards,
Benjith Sam

2024-01-31 05-29-41
Akshay Deshpande

hello Benjith sam,

thank you for your response. This is a simple way to achieve my  Requirement 


2021-03-18 21-03-15
Benjith Sam
 
MVP

You're welcome, Akshay.

Glad to help you :)


Best regards,

Benjith Sam

2022-08-17 08-19-34
Erga Kandly

Thankss

UserImage.jpg
emanuele mantovanelli

i found, but is marked as "deprecated".

what to do on new versions?

2022-10-17 06-51-09
Shweta Gedam
Solution

Hi Akshay,

You can also make it working just with some conditions and changing CSS in Extended Class property of TabsHeaderItem and TabsContentItem

I have added a working OML here for your reference

You can also checkout the link of the demo pasted below:

https://shweta-gedam.outsystemscloud.com/TabsNavigationOnButton/TabsNavigations?_ts=637456173065250665

Let me know if it works for you, Thanks :)

TabsNavigationOnButton.oml
2024-01-31 05-29-41
Akshay Deshpande
Hello Shweta Gedam, Thanks for your Quick response, and its working. Thank you
2022-03-12 19-54-33
Rúben Leston

Hello Akshay Deshpande,

By default, you just need to care about the order the items. Meaning that the order of the HeaderItems will have to match to the order of the ContentItems.

You don't need to care about anything else. If you test it, you'll see that the content will switch. 


Imagine that the content inside some TAB is too long. If you want (for any reason) to switch tabs with a button inside a specific content (but at the bottom of the page) you can try this approach:

1. Give a name to the Element in the Title of the specific Header. Like this:

Add the logic that you want. And add the following javascript to the action that will do the switch:


Cheers, 


Rúben

2024-03-20 08-23-38
PatrickNguyen

Hi,

As i can see it only work if you put the navigation tab on screen, however if i have the block and want to do inside, it won't work. Please help

Sincerely,

Patrick

2022-10-17 06-51-09
Shweta Gedam
Solution

Hi Akshay,

You can also make it working just with some conditions and changing CSS in Extended Class property of TabsHeaderItem and TabsContentItem

I have added a working OML here for your reference

You can also checkout the link of the demo pasted below:

https://shweta-gedam.outsystemscloud.com/TabsNavigationOnButton/TabsNavigations?_ts=637456173065250665

Let me know if it works for you, Thanks :)

TabsNavigationOnButton.oml
2024-01-31 05-29-41
Akshay Deshpande
Hello Shweta Gedam, Thanks for your Quick response, and its working. Thank you
2021-03-18 21-03-15
Benjith Sam
 
MVP
Solution

Hi Akshay,

The OutSystemsUI module already does have a pre-defined client action available called TabsGoTo, for the mentioned use-case. Refer to the TabsGoTo client action from the OutSystemsUI module as shown below 


See this sample app | TabWidgetDemo

Refer to the attached .oml file


Hope this helps you!


Kind regards,

Benjith Sam

RWALabTabWidgetDemo.oml
2026-02-26 06-29-24
Rahul
 
MVP

Nice Benjith,


2021-03-18 21-03-15
Benjith Sam
 
MVP

Thanks, Rahul!

Glad to help :)


Best regards,
Benjith Sam

2024-01-31 05-29-41
Akshay Deshpande

hello Benjith sam,

thank you for your response. This is a simple way to achieve my  Requirement 


2021-03-18 21-03-15
Benjith Sam
 
MVP

You're welcome, Akshay.

Glad to help you :)


Best regards,

Benjith Sam

2022-08-17 08-19-34
Erga Kandly

Thankss

UserImage.jpg
emanuele mantovanelli

i found, but is marked as "deprecated".

what to do on new versions?

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