Get CI attributes on the form and populate in Client Script
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi,
Good Day..!!
The requirement is to populate the attributes on the form in other field.
E.g. If we select widows test server 1, then below field should list down all the fields present on that form.
I have written the script include as below
"
getCiName : function(){
var a = this.getParameter ('sys_ci');
var ciAttribute = new GlideRecord ('cmdb_ci');
ciAttribute.addQuery ('sys_id', a);
ciAttribute.query();
if (ciAttribute.next())
{
return
}
"
Can anyone help how to fetch those fields and show them on client side as dropdown options?
Thank you.
0 REPLIES 0
