function onChange(control, oldValue, newValue, isLoading) { if (isLoading || newValue === '') { return; } // Get the selected customer value var customer = g_form.getValue('customer'); // Query the User table to get the managers for the selected customer var userGr = new GlideRecord('sys_user'); userGr.addQuery('customer', customer); userGr.query(); // Set the values of the manager fields while (userGr.next()) { if (userGr.getValue('manager_type') === 'Technical Manager') { g_form.setValue('technical_manager', userGr.getValue('manager'), userGr.getDisplayValue('manager')); } else if (userGr.getValue('manager_type') === 'Business Manager') { g_form.setValue('business_manager', userGr.getValue('manager'), userGr.getDisplayValue('manager')); } } }
AJAX = Asynchronous JavaScript And XML
Yes
Is this the latest interview?
S
Sir plz interview me
Please reach me 9066921316
based on my availability, i can plan (it will be chargable)
Background script only crud operation
Yes
I thinks she is faking becz having a 10 year exp can't descripe simple love task
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue === '') {
return;
}
// Get the selected customer value
var customer = g_form.getValue('customer');
// Query the User table to get the managers for the selected customer
var userGr = new GlideRecord('sys_user');
userGr.addQuery('customer', customer);
userGr.query();
// Set the values of the manager fields
while (userGr.next()) {
if (userGr.getValue('manager_type') === 'Technical Manager') {
g_form.setValue('technical_manager', userGr.getValue('manager'), userGr.getDisplayValue('manager'));
} else if (userGr.getValue('manager_type') === 'Business Manager') {
g_form.setValue('business_manager', userGr.getValue('manager'), userGr.getDisplayValue('manager'));
}
}
}
You should not right glide record on client script...
@@SKfacts_ITcareers yes,how to achieve this
I written the script in notepad of the session
@@SKfacts_ITcareers ok
In a same session?