Question


Capgemini
CA
Last activity: 11 Sep 2018 2:59 EDT
Tab switch on click
PFA: section, skin configuration and UI appearance
I have a layout group with style set to Tab in skin. Hence the final appearance of the layout group is Tab.
On click of a button, I need to switch to a particular tab.
--
Scenario: We have 3 tabs, on click of a button in 2nd tab, we need to switch to 1st tab.
We were using below script. It was working fine when we only had two tabs. Now we have added a new tab, and this script switches to 3rd tab always, requirement is to switch to 1st tab.
function SwitchTab()
{
$('.layout-group-vsportaltab[role="tablist"] > .layout:not(.active) .header h3').click();
}
Would appreciate any help I can get.
Note: pega.desktop.activateDocument script will only work if we use tabbed layout, it is not working when screen layout with tab appearance has been used.
***Edited by Moderator Marissa to update platform capability tags****
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!


Tata Consultancy Services
IN
can you try using toggle tab
-
Direesh Aunugu Todd Kyle Abhilash Jonnala Kripal Kumar Singh Harsh Kumar and 1 More


Capgemini
CA
Hi Gayatri,
I could not understand what toggle tab is? Can you please let me know if this is script/action OOTB?
Regards,
Satya


Tata Consultancy Services
IN
Can you try using below script.


Capgemini
CA
Thanks for your reply Gayatri,
I tried above and it did not work. My Tab name is Reviews, and I passed argument as Reviews.
How ever the tab focus did not change.
Regards,
Satya


Tata Consultancy Services
IN
could you please provide me your configuration details.


Capgemini
CA
Hi Gayatri,
I have put up all my configuration details in the original post. Please let me know if you need any thing else.
Regards,
Satya


Tata Consultancy Services
IN
Not the original one , i want your toogle script configuration


CollabPartnerz
IN
Please try with a Toggletag control.


Pegasystems Inc.
US
I was not able to determine a way to uniquely identify the tabs very easily. Can UI SMEs suggest a local change here?


CollabPartnerz
IN
Have tried using Toggletag


Capgemini
CA
Hi Raveendra,
I am not able to find control named toggletag. I am using version 7.1.8.
Can you please advise.
Regards,
Satya