Name
global.KnowledgeMessagingAjaxSNC
Description
Invoked from knowledge_search_header UI Macro Customers should not change this class directly This class is never called directly.
Script
var KnowledgeMessagingAjaxSNC = Class.create();
KnowledgeMessagingAjaxSNC.prototype = Object.extendsObject(AbstractAjaxProcessor, {
/**
* Prevent public access to this script
*/
isPublic: function() {
return false;
},
process: function() {
var err = j2js(gs.getErrorMessages());
var inf = j2js(gs.getInfoMessages());
var msgs = [];
for (i in err) {
var mErr = {msg:err[i],type:'error'};
msgs.push(mErr);
}
for (j in inf) {
var mInf = {msg:inf[j],type:'info'};
msgs.push(mInf);
}
gs.flushMessages();
return (new JSON().encode(msgs));
},
type: "KnowledgeMessagingAjaxSNC"
});
Sys ID
9bf2247bb712230026778d78ee11a979