It seems that the parameter coordination between client and server has failed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2024 05:32 PM
Calling script include from UI page "Attachments" Parameters were passed on the call, but an issue occurred where the parameters were not accepted within the script include.
I have never failed to link parameters from a client-side script to a server-side script, but does this happen often? If the occurrence frequency is high, I think it is necessary to implement exception handling.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2024 02:38 AM
Without the scripts and knowing what is running on your instance, it is hard to say what could be the cause of this. Were the parameters not set correctly, or did something else happen? We don't know the process you are running this on, but even without knowing that: it is never a bad thing to add exception handling if it is something important. It does depend on the cause, though.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2024 03:37 AM
Please share your script so that we can see what is wrong there.
Regards,
Nikhil Bajaj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2024 09:14 PM
I can't provide details about the script, but the script include is called from the client side as follows:
"var ga = new GlideAjax('script name');
ga.addParam('sysparm_name', 'function name');
ga.addParam('parameter 1', 'val');"
The script include receives the value as below.
"var tmp_val = this.getParameter('parameter 1');"
It seems that "tmp_val" was empty in the script include.
I'm wondering if parameter passing can fail.