Important Update: Some Community URL Redirects are Under Maintenance. Learn More. .

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom object button does not work when placed in a secondary/sub tab in Archer

Sivaramachandra
Contributor III

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 

1 ACCEPTED SOLUTION

Accepted Solutions

Ilya_Khen
Champion III

Sivaramachandra,

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.

View solution in original post

10 REPLIES 10

Ilya_Khen
Champion III

Sivaramachandra,

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.

Swapnali_Shinde
Contributor III

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.

 

@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

Swapnali_Shinde
Contributor III

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 ?

@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

Swapnali_Shinde
Contributor III

yes button inside the tab.and alert coming blank. no error.

Swapnali_Shinde
Contributor III

Hi @DavidPetty ,

Resolved Issue. Thank You.

What was the issue?

Anytime : D

 Advisory Consultant

Swapnali_Shinde
Contributor III

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.