3 Replies · Latest reply on Apr 21, 2017 4:28 AM by Chuck Tomasi

    UI action

      i have a requirement. I created a button on incident form as "critical tickets".

      if i click on that i should navigate to other tab or window and show only priority=1 tickets.

        • Re: UI action
          Sneha Binani

          Create a UI action with below script.

           

          action.RedirectURL(incident_list.do?sysparm_query=priority%3D1BR);

           

          Hope this helps you.

          1 of 1 people found this helpful

          Thanks,
          Sneha Binani

          PS: Hit like, Helpful or Correct depending on the impact of the response

            • Re: UI action
              Chuck Tomasi

              FYI - action.setRedirectURL() is a server side method that opens the list in the same window. the URL is essentially correct, but won't open in a new window.

               

              Not sure what the BR on the end of that query is going to do though...

               

              incident_list.do?sysparm_query=priority%3D1

               

              Is a better approach.

              1 of 1 people found this helpful

              --Chuck Tomasi
              --Sr. Technical Product Marketing Mgr, Now Platform
              --Knowledge 18/CreatorCon Call For Speakers is Open
              --https://www.servicenowevents.com/servicenowknowledge18/cfs

            • Re: UI action
              Chuck Tomasi

              This would require a window.open() from a client side option of your UI action. You might find this helpful.

               

              How to open a new window using UI action javascript after clicking a button?

              --Chuck Tomasi
              --Sr. Technical Product Marketing Mgr, Now Platform
              --Knowledge 18/CreatorCon Call For Speakers is Open
              --https://www.servicenowevents.com/servicenowknowledge18/cfs