reapply
catalog client script
----
var GetBaseRecord = Class.create();
GetBaseRecord.prototype = Object.extendsObject(global.AbstractAjaxProcessor, {
/*
* コピー元の申請情報を取得
* return {string} コピー元の申請情報
*/
getBaseRecord: function() {
var sys_id = this.getParameter("sysparm_sys_id");
gs.info(sys_id);
var grri = new GlideRecord("sc_req_item");
if (grri.get(sys_id)) {
var result = {};
for (var item in grri.variables) {
result[item] = grri.variables[item].toString();
}
return JSON.stringify(result);
}
return;
},
type: 'GetBaseRecord'
});
---
script include
var GetBaseRecord = Class.create();
GetBaseRecord.prototype = Object.extendsObject(global.AbstractAjaxProcessor, {
/*
* コピー元の申請情報を取得
* return {string} コピー元の申請情報
*/
getBaseRecord: function() {
var sys_id = this.getParameter("sysparm_sys_id");
gs.info(sys_id);
var grri = new GlideRecord("sc_req_item");
if (grri.get(sys_id)) {
var result = {};
for (var item in grri.variables) {
result[item] = grri.variables[item].toString();
}
return JSON.stringify(result);
}
return;
},
type: 'GetBaseRecord'
});