- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2016 11:43 AM
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading) {
return;
}
var Emp = new GlideRecord('sc_req_item');
Emp.addQuery('sys_id', newValue);
Emp.query();
while(Emp.next()) {
g_form.setValue('u_first_name', Emp.variables.u_first_name);
}
}
i used this code but this gives me undefined in my coloumn
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2016 12:09 PM
Hi Manohar,
Please check this link https://community.servicenow.com/thread/219073?q=use%20script%20include%20value%20in%20client%20scri...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2016 11:57 AM
its not a table its catalog client script

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2016 12:00 PM
OK. Thank you. If you could provide additional details on what you are trying to accomplish (more details are better, pictures are particularly helpful) then the community may be of additional service.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2016 12:05 PM
copy the request item variables to current catalog form. so that if the catalog form is rejected user can select the old form and instead of refilling the details
so old form values can be refilled to new form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2016 12:00 PM
This is because you cannot use dot references in Client scripts.
Also there is not column names variables in Request Item table. The variables linked to a RITM and their answers are stored in a different table named Variable Ownership.
If you can give me the exact requirement of what you are trying to achieve here, then i can help you with an appropriate solution for the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2016 12:07 PM
copy the request item variables to current catalog form. so that if the catalog form is rejected user can select the old form and instead of refilling the details
so old form values can be refilled to new form