pass entire gliderecord back to client script

rajeeshraj
Tera Guru

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?

19 REPLIES 19

Prateek kumar
Mega Sage

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

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.


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.


Shishir Srivast
Mega Sage

Can you please share your code how are you doing this?