Important Update: Community URLs redirect issues are partially resolved. Learn More. .

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Objects are not working and the records are getting frozen

SureshAtmakuru
Contributor II

We configure few custom objects with Java Script those are not working as expected.
Is there any additional configuration needed to make those custom objects to work?
There are no specific Filed ID's are involved in package migration and we used Archer methods to navigate from one tab to another tab and using next&previous buttons.

3 REPLIES 3

DavidPetty
Archer Employee
Archer Employee

Suresh, the browsers developer tools console is your friend.  See what errors are being thrown and go from there.

 Advisory Consultant

DavidPetty
Archer Employee
Archer Employee

Can you post the code for the custom object that's not working?

 Advisory Consultant

David, please find the below code
JavaScript inside each Tab
<table border='0' style='width: 100%'>
 <tr>
 
  <td style='width: 50%; text-align:left;padding:10px;'>
  <img class="btnprev"
  src="https://grc.archer.rsa.com/BackgroundImageGenerator.axd?className=StyledButton&classProperties=caption:Previous+Module;iconSetStyle:VistaRound;baseColor:%23DDDDDD;disabled:False"
 
  onclick="selectTab('prev')"/>
  </td>
 
  <td style='width: 50%; text-align:right;padding:10px;'>
  <img class="btnnext"
  src="https://grc.archer.rsa.com/BackgroundImageGenerator.axd?className=StyledButton&classProperties=caption:Compliance+View >>;iconSetStyle:VistaRound;baseColor:%23DDDDDD;disabled:False"
 
  onclick="selectTab('next')"/>
 
 </td>
 </tr>
 </table>

 

JavaScript outside each Tab

<script type="text/javascript">
 var tabIndexes, tabSetId, selectedTabIndex;
 function pageLoad(){
  $.each($LM._tabSets, function(key,value){
   tabSetId = key;
  });
 
  if(tabSetId){
   tabIndexes=$LM._tabSets[tabSetId].tabIds;
   var tabStripElementId='master_DefaultContent_rts_ts' + tabSetId + '_t';
   var tabStrip=$find(tabStripElementId);
   selectedTabIndex=tabStrip._selectedIndex;
  
   //Hide previous button if user is on the first tab
   if(selectedTabIndex==0)$('.btnprev').hide();
  
   //Hide next button if user is on the last tab
      if(selectedTabIndex==3)$('.btnnext').hide();
  
  }
 }
 
 function selectTab(action) {
  var tabId, tab;
  if(action=='prev'){
   tabId=tabIndexes[selectedTabIndex-1];
   tab=$('li.tab_'+tabId).find('a.rtsLink').trigger('click');
   tab.find('span.rtsTxt').trigger('click');
  }
 
  if(action=='next'){
   tabId=tabIndexes[selectedTabIndex+1];
   tab=$('li.tab_'+tabId).find('a.rtsLink').trigger('click');
   tab.find('span.rtsTxt').trigger('click');
  }
 }
 </script>