Calling UI Script from UI Action

agw
Kilo Contributor

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

12 REPLIES 12

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.


Abhinay Erra
Giga Sage

Post the UI action code here


find_real_file.png


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.