- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2016 07:24 AM
Hi,
I am trying to make a UI action which generates a PDF out of my request record (extension of sm_order).
Here is my UI action script (taken from UI Action to export to pdf 😞
However, apparently I cannot use g_form because this is what comes up in the debug log:
How else can I generate a PDF from a record? Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2016 07:29 AM
UI Actions by default are server side, which is why you can use current and gs.log. g_form is strictly client side.
You can mark a ui action as 'client', which will let you run both types of code. Look at the OOB Resolve Incident UI action. It is a perfect example of running the client code first, after which the server code is called.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2016 07:29 AM
UI Actions by default are server side, which is why you can use current and gs.log. g_form is strictly client side.
You can mark a ui action as 'client', which will let you run both types of code. Look at the OOB Resolve Incident UI action. It is a perfect example of running the client code first, after which the server code is called.