How to get variable value in Order Guide script (in Service Portal)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2019 06:33 AM
Hi all,
I'm struggling with Order Guide script and cannot find any useful resource on internet.
I'd like to access variable from initial "Describe needs" screen and add dynamically some items to Order guide using "guide.add(sys_id_of_cat_item)".
However, I cannot get the value of variable.
Command g_request.getParameter('IO:sys_id') is working only in backend.
When using Order guide in Service Portal, I get com.glide.script.RhinoEcmaError: "g_request" is not defined
Any idea how to access variable value in Order Guide script?
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2019 06:40 AM
Hi,
could you please go through this links,
may be helpful to you.
varsha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2019 06:58 AM
Unfortunately not helpful, I'm looking for server side script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2019 07:43 AM
Hi,
i haven't created any time script for order guide,i got the again some links to useful for server side scripting may useful to you.
varsha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2019 04:12 AM
No, unfortunately not helpful.
In the end we found a workaround that in the onchange script in one variable in first "Describe needs" page we save the variable value in database table and in "Order guide script" we are reading this value.