Agent workspace for HR case management Configurable workspace
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2023 05:45 AM
Hi All,
We are migrating from Core UI to Configurable workspace . I want to make all UI action work on configurable workspace . I made below checkbox and UI action is visible now but the server script which is written on Ui action script is not working and some function . How to make server script work .
My client script is also not showing alert of line12 , 14
Format for Configurable Workspace
function checkPositionData(){
var hrTask = g_form.getDisplayValue("number");
alert('Native Script hrTask' + hrTask);
var ga = new GlideAjax('NVS_H2O_CheckPositionData');
alert('Native Script line 5');
ga.addParam('sysparm_name', 'checkPositionData');
ga.addParam('sysparm_hr_task', hrTask);
alert('Native Script line 7');
ga.getXML(positionResponse);
function positionResponse(response) {
alert('Native Script line 12');
var answer = response.responseXML.documentElement.getAttribute("answer");
alert('Native Script line 14 ' + answer);
if(answer=="positionInComplete"){
alert('Native Script line 16' );
alert(getMessage("Position interface is still not completed, please check later and close the task."));
return false;
}
else{
alert('Native Script line 21' );
gsftSubmit(null, g_form.getFormElement(), "close_complete1");
}
}
}
if (typeof window === 'undefined')
complete();
function complete() {
if (current.work_end.nil())
current.work_end = new GlideDateTime().getDisplayValue();
current.state = 3;
current.update();
action.setRedirectURL(current);
}
0 REPLIES 0