CA Service Management

  • 1.  Help with switching tabs in edit mode on error

    Posted May 01, 2018 01:18 PM

    Hello,

     

    I have a spel code that checks on PRE_VALIDATE for a resolution code and if the ticket is a major incident.  If it is and resolution code is 'other', I need the outage_detail_what field on the Outage tab to be highlighted.  I need help switching to the outage tab so I can highlight the field like with required fields on properties tab..  This code is called from both detail_incident.htmpl edit and request_status_change.htmpl.

     

    I've tried using from windows_manger.js to no avail.  I am getting finding the element but it does not make the tab the current selection -

     

    function clickOnLink(id)
    {
    try {
    var link = document.getElementById(id);
    if ( link != null )
    document.location.href = link.href;
    }
    catch(e) {}



  • 2.  Re: Help with switching tabs in edit mode on error
    Best Answer

    Posted May 01, 2018 03:08 PM

    Got the answer!  Activating automatically a tab in cr detail screen Thanks @cdtj

    show_accordion_tab(<tab_index>);