GlideJellyRunner in Scoped Application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2018 04:42 AM
Hi All,
I am using GlideJellyRunner in Scoped Application to refresh my UI macro, without refreshing/reloading the entire form.
But, I am getting the below error in System logs:
getUiMacroData --> error : JavaException: java.lang.SecurityException: GlideJellyRunner is not allowed in scoped applications
Can anyone please help me to know what is the alternate of GlideJellyRunner that I can use in Scoped Application to refresh the UI macro on my form. This is very urgent..please help if anyone knows.
Thanks & Regards,
Mahendra Choudhary

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2018 05:27 AM
Hi,
Please go through below link. It may be helpful to you
If this answer help you, please mark it as correct so that this thread is closes.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2018 01:12 AM
Hi Bhagya,
Thanks for reply..I tried this but it is giving me error when I replace the run(), with runMacro(). Please see the below code
JellyRunner Script include:
var JellyRunner = Class.create();
JellyRunner.prototype = Object.extendsObject(AbstractAjaxProcessor,{
get: function(jelly) {
gs.info("get Method Called");
gs.info(JSON.stringify(jelly));
var jr = new GlideJellyRunner();
jr.setEscaping(false);
jr.setTwoPhase(true);
jr.setVariable("jvar_alert_body", jelly.alertBody);
jr.setVariable("jvar_sync_status", jelly.syncStatus);
jr.setVariable("jvar_publish_status", jelly.publishStatus);
jr.setVariable("jvar_tracking_status", jelly.trackingStatus);
jr.setVariable("jvar_severity", jelly.severity);
jr.setVariable("jvar_sent_on", jelly.sentOn);
jr.setVariable("jvar_alert_status", jelly.alertStatus);
gs.info("get Method Called");
//var result = runFromScript('<g:x_80966_iws_alert_iwsAlertTracking/>');
var result = jr.runMacro('x_80966_iws_alert_iwsAlertTracking');
gs.info("result : " + result);
return result;
},
type: 'JellyRunner'
});
Background script :
(function () {
var jelly = {"alertBody": "Test", "syncStatus": "In Progress", "publishStatus": "Not Started", "trackingStatus": "Not Started", "severity": "Unknown", "sentOn": "", "alertStatus": "Live"};
var jr1 = new global.JellyRunner();
var macroData = jr1.get(jelly);
gs.info("macroData = " + macroData);
})();
I get the below error, when I try to run the Background Script :
Can you please help me on this, if you have any idea.
Thanks & Regards,
Mahendra Choudhary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2018 11:33 PM
Can anyone please help me on this issue, if you have any idea on this?
Thanks