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 07:50 AM
Hi Chuck,
I have a question in the context on UI action. Whats the difference between the 'action on selected rows"> approve on the related list of a CHG/PRB approvers and "action on selected rows" > approve on th sysapproval_approver table it self

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2017 07:59 AM
Can you point out where you are seeing this? Is it the same UI action or different ones?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2017 08:04 AM
It is the same UI action "Approve" on the sysapproval_approver table with the client option checked as I wanted a pop up to confirm approval when some does it from 'action on selected rows'
code:
Function confirmAndApproveFromList()
{
Call a GlideDialog which is turn calling a UI page in turn and display the pop up like Are you sure you want approve?
}
Change or a problem record > approver related tab > select a record and do 'action on selected rows' >approve - IT WORKS
But if I go to sysapproval_approver.list and select any record> do action on selected rows - IT Would Not work.
Whats the difference between these list views. Is 'client' option is doing it ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2017 08:10 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2017 08:11 AM
Hi Ravali,
Thank you for the information. I'm unable to reproduce this. I'm getting it to do approvals on both the list from sysapproval_approver and the related list on a change in the way you described.
I go to a change, check some approval records and use the list menu to approve. It marks them as approved. I had to do a list refresh to confirm, but it was there.
From sysapproval_approver, I also checked a record, went to the list menu at the bottom and chose Approve and the record was marked approve.