UI action on service portal

xif1
Mega Expert

Hello Snow Community,

UI action are not working on service portal helsinki (page ticket).

I found that we have to code our own widget, so I did something with few button ng-show to display etc etc..

I would like to call getActionName in order to launch the proper ui action for the right button, but I can't use g_form on client side script on the portal.

Someone i've done this ?

Or do you know a better way to handle ui action on service portal page ?

Regards

15 REPLIES 15

I finally used from page instead of ticket page in order to have ui action available


Hi Ramain,



How did you achieved this, for me also I am not able to see my UI action on service portal page of Requested Item.


Help me.



I have created a ui action on the Requested Item on the form but not visible on service portal side.



Thanks,


Jeet


You have two solutions :



You change 'ticket' in your url by 'form' and you got the ui action on the bottom


Or you have to build your own widget to display button 'like ui action' and to something on click.


but the problem is I have created that UI action for a UI page. On click of that UI Action one pop window is opening so we need to fill and then we need to save it.


UI action for POP windw-   we are calling a UI_Page inside that...



function popupDispList() {


  var documentId = g_form.getValue("********");


  var sysID = g_form.getUniqueValue();



  var dialog = new GlideDialogWindow("UI_Page");


  dialog.setTitle("Publish");


  dialog.setColor("LightGrey");


  dialog.setSize(500,500);


  dialog.setPreference("sysparm_ritm_id", sysID);


  dialog.setPreference("*******", ******);



  dialog.render();


}



Thanks,


Jeet.


I never used UI Page in service portal,



I built my own widget with angular, I'm not sure you can use this with this way.