- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2016 08:35 AM
I use the onDisplay Business Rule --> onLoad Client Script combination in other places to make use of g_scratchpad and let the server do the work instead of burdening the client. Is it possible to use this in a Record Producer, Catalog Item, or Order Guide? Not sure what table this runs on since the URL is https://[instance].service-now.com/com.glideapp.servicecatalog_cat_item_view.do?v=1&sysparm_id=[sys_id of Record Producer]
Specifically, I'm trying to pass some User information to the record producer (company of the user). Server-side, this is simply gs.getUser().getCompanyID(); but nothing is available client-side. I suppose I could do an onLoad Catalog Client Script making an AJAX call?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2016 08:44 AM
Hi David,
For catalog item form or record producer you should make a GlideAjax call via client script.
Please let me know if you have any questions.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2016 08:44 AM
Hi David,
For catalog item form or record producer you should make a GlideAjax call via client script.
Please let me know if you have any questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2016 08:54 AM
HI David,
Yeah. That is a processor. It wont run against table. GlideAjax seems to be the way.
Thanks
Srini