- 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-21-2022 03:58 AM
yes I did
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2022 04:18 AM
Finally i found the addParam api document... and see below red part.
parm_name | String | The name of the parameter to pass. (The name must begin with the sysparm_ .) |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-21-2022 03:24 AM
Thanks I tried it but I still get the parameter as undefined in the Script Include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-21-2022 03:33 AM
@Gal Katz can you replace line 7 in the client script
From --> ga.addParam('u_sec _class', g form.getValue('u_sec_class')) ;
To --> ga.addParam('sysparam_u_sec_class', g form.getValue('u_sec_class')) ;
Then your code will work.
Regards, Shekhar
- 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.