- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2022 12:41 AM
In Script-Include: I'm getting a parameter from Client-Script (I used g_form.getValue() on a String Choice Field to get the value and send it to Script Include).
I need to insert a string to the query but for some reason I can't convert the parameter to string (in addition to what is shown in the image below, I tried: sec = u_sec_class.toString() without success)
Please advise.
 
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2022 12:05 AM
I'm updating that I instead of using the parameter I wrote a workaround and just used current.u_sec_class in the query.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2022 12:59 AM
What is the return value of "this.getParameter('u_sec_class')" ?
And can you also post your code which calls the script include?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2022 01:09 AM
I thought the return value is a string but apparently it isn't and I can't convert it to string. that's my issue.
the Client Script is below
 
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2022 01:44 AM
Add the below debug code atfer getParameter and run again, then check the system log .
gs.info(u_sec_class)
gs.info(typeof(u_sec_class))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2022 01:17 AM - edited ‎12-19-2022 01:19 AM
can yoy let us know what you get from g_form.get Value();
and please add ga.getXMLAnswer(getResponse); in your script