pass entire gliderecord back to client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2018 08:19 AM
How can i pass the entire gliderecord from script include to client script. I am querying location table based on a location name, i would like to get the entire record for the particular location from the scriptinclude back to the client script. Is there an example code?
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2018 09:27 AM
You can use a GlideAjax and a Client callable script include to achieve this.
How to use GlideAjax and Client Scripts with Best Practice in mind
Please mark my response as correct and helpful if it helped solved your question.
-Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2018 11:19 AM
Thanks for the reply, but this JSON call only returns one field from the table. I would like to return the entire record from a table back to the client script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2018 01:41 PM
That not true. You can return "whatever" you want with the JSON. I just showed returning a simple thing. I would recommend just downloading the update set and play with it to see how it works.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2018 09:40 AM
Can you please share your code how are you doing this?