Calling UI Script from UI Action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2017 07:50 AM
Hello Community,
I created a UI Script, quite simple with just a function with an "Hello World" alert. Then I created an UI Action in the incidents form. Unfortunately this simple thing doesn't work. Can you please help me to get it up and running?
Next step would be to paste the code of a jsvascript library into the UI Script, to have it available in the UI Action. Is there an alternative to use javascript libraries?
Regards
aw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2017 08:51 AM
Hi Chuck,
Thanks a ton for checking.
I got it working on both side s as well until I made the client side popup as well. Please check the client field and do some pop up on the approve UI action.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2017 09:03 AM
Post the UI action code here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2017 10:10 AM
Psedo CODE:
function confirmAndApproveFromList()
{
- I am calling a GlideDialogWIndow which is turn calling a UI page (IUI page is asking a question "Are you sure you want approve ?', just like when we try to delet from 'action on selected rows')
- The client script portion on the UI page is calljng a script include which is approving the approval records.
}
It is working fine as I mentioned in the related list, but when I go to the sysapproval_approver.list and try doing it, it would not do any thing.