how to use GlideRecord in client script in scoped application

pratap1
Giga Contributor

Hi All,

i am using gliderecord in onload client script in scoped application.

client_script_issue.png

but it is not working show some error message

"TypeError: GlideRecord is not a constructor"

Thanks,

Best regards,

Pratap Ranawat

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Hi Pratap,



Do yourself a favor and get familiar with GlideAjax. It's a lot more flexible and available in all scopes.



We do an example of multi-record results in episode 33 of TechNow;


TechNow Episode List



Also reference:


Docs: Client Scripts


Docs: GlideForm


Docs: GlideAjax  


Developer: Client Scripting Technical Best Practices Overview



View solution in original post

3 REPLIES 3

Chuck Tomasi
Tera Patron

Hi Pratap,



Do yourself a favor and get familiar with GlideAjax. It's a lot more flexible and available in all scopes.



We do an example of multi-record results in episode 33 of TechNow;


TechNow Episode List



Also reference:


Docs: Client Scripts


Docs: GlideForm


Docs: GlideAjax  


Developer: Client Scripting Technical Best Practices Overview



Hi Pratap,



you should do it using GlideAjax instead. Also, if you create the script include in an application scope, following link could be useful.



Scoped GlideRecord API



how i will stop form submit acc to value get by glideajax