+ var prefName = "slc.batch.autoclear";\r
+ var prefValue = this.getRiaPreferenceValue(prefName);\r
+ if(prefValue !== null){\r
+ this.executeBatchOnAgent(batchAgentId, prefValue);\r
+ return;\r
+ }\r
+ var modal = new org.argeo.ria.components.Modal("Clear?", null);\r
+ modal.addYesNoReminder("Do you want to clear the batch automatically after execution?", prefName);\r
+ modal.addListener("cancel", function(e){\r
+ this.executeBatchOnAgent(batchAgentId, false);\r
+ }, this);\r
+ modal.addListener("ok", function(e){\r
+ this.executeBatchOnAgent(batchAgentId, true);\r
+ }, this);\r
+ modal.attachAndShow(); \r