URL link in addInfoMessage

var ga=new GlideAjax('gld_HR_ajax');
ga.addParam('sysparm_name', 'checkEmployeeNumber_hrProfile');
ga.addParam('sysparm_hrprofilenumber', g_form.getValue('number'));
ga.addParam('sysparm_employeenumber', newValue);
ga.getXMLAnswer(function(answer) {
if (answer!='undefined' && answer!=''){

var navURL="<a style='text-decoration:underline;color:blue' href=hr_profile.do?sysparm_query=number=" + answer + ">" + answer + "</a><img width='3' src='images/s.gif'/>";
var sMsg='The employee number entered already exists on another HR Profile ' + navURL;
//alert(sMsg);
g_form.showErrorBox('employee_number', 'error - please check');
g_form.addInfoMessage(sMsg);
}

});

Comments

Popular posts from this blog

Running transform maps asynchronously

Post a command to the ECC queue for the mid server to initiate a powershell file copy

GlideRecord setValue