Is unable to present values in the portal?

Ramanjaneyuv
Tera Contributor

Is unable to present values in the portal?

Kindly verify the below screen shorts and let me know any modifications are required.

client script : onchange 

Ramanjaneyuv_0-1727147045184.png

Script include client callable.

Ramanjaneyuv_4-1727147426679.png

 

 

Thanks

3 REPLIES 3

Brad Bowman
Kilo Patron
Kilo Patron

In a GlideAjax call, all of the parameters need to be named 'sysparm_xxxx', so change your appid line to

civ.addParam('sysparm_appid', appname);

If you still are not getting expected results, add some gs.info lines to the Script Include to see what is happening throughout the script.

Thanks for the your response . getting the below values or find below screenshots,.

 

Ramanjaneyuv_0-1727199017457.png

Ramanjaneyuv_1-1727199127026.pngRamanjaneyuv_2-1727199264046.png

 

 

That looks like progress.  Is 1009 the expected value for app_id_name passed in from asl_id, and do you have a record on the cmdb_ci_business_app table with this u_app_id?  If it is, and you do, you probably want

var app_id_value = app_id.name;

to return the Business Application Name to the client.  If not this field, then whatever field you are looking for from this table for the project_name variable/field.  Is project_name a string/text variable/field?