Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

UI Action to open UI Page

Wade Clairmont
Tera Guru

Hey all,

 

I have a UI Action that I need to open an UI page, but seems to do nothing. I know the sys_id is present, but won't open the page.

var test = g_list.getChecked();
if (test == '') {
  g_form.addErrorMessage('Selection required from Materials Request list to proceed.');
} else {
  g_form.addErrorMessage('Wait ' + test);
  var gr = new GlideRecord('u_pick_ticket');
  gr.addQuery('parent', test);  
  gr.query();
  if (gr.next()) {
    var url = '/x_nuvo_eam_PickTicket.do?sysparm_pt_id=' + gr.sys_id;
    var w = getTopWindow();
    w.popupOpenFocus(url);
  }
}

 

I know the ui page works, as a similar action also exists directly on the form.  Are there limitations to this cross-scope? Is a requirement for this to be server or client-side?  I tried both client side and server side with the same results, notta.

 

Any thoughts?


Thanks in advance.

1 REPLY 1

Joe S1
Kilo Sage