- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2019 05:22 AM
I created a catalog client script onLoad that call a script include using GlideAjax but on portal when i open the item, with admin the ajax call work, with other user (without role) don't work. I inserted some log on script include and with no-admin user the script include is not execute.
This is the call:
This is the called function:
This is the result with admin:
This is the result without admin:
-----------------------------------EDIT-----------------------------------------
My script include:
My catalog client script:
Anyone can help?
Thanks
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2019 02:05 AM
Hi Can you add the below function after line number 3
isPublic: function () {
return true;
},
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Wow, it surprisingly worked for me, thanks a lot! However, why is this working? I don't understand why this solves my problem, anybody knows?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2019 04:27 AM
I had the exact same problem and it worked when I added suggested code, thank you for your help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2025 04:51 AM
Hi all,
For me when I add public function and do logout, logout page runs into a loop and refreshing the session_timeout function again and again. Any idea about why this is happening, even the script include is not called from any logout script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-06-2025 11:57 AM
Better is to add an ACL for the script include.
Operation=execute
Type=client_callable_script_include
Name=<name of your script include>
Then add the roles who may access the Ajax call from the Catalog Client Script
Best Regards
