We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

this.getParameter('') in script include

rishi4200
Giga Expert

Hi Experts,

Good Day !
Can someone please let me know what is the use of this.getParameter('') does in script include with an example, if possible ?

I am trying to explore GlideAjax but not able to get the use of this.getParameter('') in script include ?

Thank you in advance !

Thank you,

RIshi

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee

Hello Rishi,



var usrName = this.getParameter('sysparm_user_name'); //Here sysparm_user_name will have the input received from client script i.e ga.addParam('sysparm_user_name',"Bob");



Reference:


http://wiki.servicenow.com/index.php?title=GlideAjax#gsc.tab=0


View solution in original post

6 REPLIES 6

Pradeep Sharma
ServiceNow Employee

Hello Rishi,



var usrName = this.getParameter('sysparm_user_name'); //Here sysparm_user_name will have the input received from client script i.e ga.addParam('sysparm_user_name',"Bob");



Reference:


http://wiki.servicenow.com/index.php?title=GlideAjax#gsc.tab=0


Thanks a lot Pradeep for your clarification !!




Regards,


Rishi


You are very welcome. Thanks for participating in the community!


Hello Pradeep,
What is the return type for this.getParameter('sysparm_user_name);