GlideJellyRunner in Scoped Application

Mahendra RC
Mega Sage

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

3 REPLIES 3

Bhagya Lakshmi
Mega Guru

Hi,

Please go through below link. It may be helpful to you

GlideJellyRunner

 

If this answer help you, please mark it as correct so that this thread is closes.

Thanks.  

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 :

find_real_file.png

 

Can you please help me on this, if you have any idea.

 

Thanks & Regards,

Mahendra Choudhary

Mahendra RC
Mega Sage

Can anyone please help me on this issue, if you have any idea on this?

 

Thanks