Important Update: Community URLs redirect issues are partially resolved. Learn More. .
2021-07-20 01:32 AM
Hi All,
We have a custom object button to trigger a datafeed and it has been placed under a sub-tab. its not working when we move from one tab to another. Can anyone please help us to fix this issue.
Requirement is to tigger the custom code on clicking the button which is placed in a sub-tab.
Thakns in Advance!
@Anonymous @DavidPetty
2021-07-20 04:41 AM - edited 2021-07-20 04:42 AM
Yes, when Custom Object is placed in a tab, it only function when the tab is active by design. Also elements defined in other tabs are not reachable for the custom code. Place the Custom Object outside of the tab.
2021-07-20 04:41 AM - edited 2021-07-20 04:42 AM
Yes, when Custom Object is placed in a tab, it only function when the tab is active by design. Also elements defined in other tabs are not reachable for the custom code. Place the Custom Object outside of the tab.
2024-03-07 10:29 AM
Hi @Ilya_Khen, @DavidPetty ,
I have multiple tabs in application. in one tab i have a button, when i click on that button i need to call a function that will take me to the next tab(open other tab).how this can be achieved ? any thoughts ?
Function that i am calling in button is written and placed in common admin section.
Thank you in advance.
2024-03-07 11:08 AM
@Swapnali_Shinde if the function you're calling is outside the tab set. The button inside the tab set should have no problems referencing it.
Advisory Consultant
2024-03-07 11:22 AM
Hi @DavidPetty ,
function ReDirectToPreLaunchTab() {
tabb = $('.rtsLI tab_1281').find('a.rtsLink').trigger('click');
alert(tabb);
tabb.find('span.rtsTxt').trigger('click');
//$('.rtsLI tab_1281').addClass('active');
}
this is not working for me.. anything i am missing ?
2024-03-07 11:34 AM
@Swapnali_Shinde describe not working. Is the code throwing an error? The alert not displaying?
What does the HTML for the button look like that's inside the tab?
Advisory Consultant
2024-03-07 11:35 AM
yes button inside the tab.and alert coming blank. no error.
2024-03-07 11:52 AM
Hi @DavidPetty ,
Resolved Issue. Thank You.
2024-03-07 12:04 PM
What was the issue?
Anytime : D
Advisory Consultant
2024-03-07 01:05 PM
Hi @DavidPetty ,
function ReDirectToPreLaunchTab() {
alert($(".tab_1281").length);
alert($(".tab_1281").html());
//&& $(".tab_1281").html()> 0)
if($(".tab_1281").length > 0) {
tabb = $(".tab_1281").find('a.rtsLink').trigger('click');
alert(tabb);
tabb.find('span.rtsTxt').trigger('click');
}
}
Changed code a bit. and it worked.