menu : null,\r
toolbar : null,\r
callback : function(e){\r
- this._reloadLogger();\r
+ this.reloadLogger();\r
},\r
command : null\r
},\r
command : null \r
},\r
"reopenrealized" : {\r
- label : "Re-open",\r
+ label : "Re-open Process",\r
icon : "org/argeo/slc/ria/document-open.png",\r
shortcut : "Control+o",\r
enabled : false,\r
* \r
*/\r
load : function(){\r
- this._reloadLogger();\r
- this.UIBus.addListener("newSlcExecution", this._reloadLogger, this);\r
- this.UIBus.addListener("updateSlcExecutionStatus", this._reloadLogger, this);\r
+ this.reloadLogger();\r
+ this.UIBus.addListener("newSlcExecution", this.reloadLogger, this);\r
+ this.UIBus.addListener("updateSlcExecutionStatus", this.reloadLogger, this);\r
},\r
\r
addScroll : function(){\r
},\r
\r
close : function(){\r
- this.UIBus.removeListener("newSlcExecution", this._reloadLogger, this);\r
- this.UIBus.removeListener("updateSlcExecutionStatus", this._reloadLogger, this);\r
+ this.UIBus.removeListener("newSlcExecution", this.reloadLogger, this);\r
+ this.UIBus.removeListener("updateSlcExecutionStatus", this.reloadLogger, this);\r
},\r
\r
openRealized : function(logData){\r
handler(response.getContent());\r
});\r
// STUB CASE\r
+ /*\r
req.addListener("failed", function(){\r
if(!window.xmlExecStub || !window.xmlExecStub[uuid]){ \r
return;\r
var xmlDoc = window.xmlExecStub[uuid];\r
handler(xmlDoc);\r
}); \r
+ */\r
req.send();\r
},\r
\r
org.argeo.ria.Application.INSTANCE.javascriptDownloadLocation(downloadUrl);\r
});\r
\r
+ var reopButton = new qx.ui.toolbar.Button("Re-open Process", "org/argeo/slc/ria/document-open.png");\r
+ tBar.add(reopButton);\r
+ reopButton.addListener("execute", function(e){\r
+ this.openRealized(logData);\r
+ }, this);\r
+ \r
// Call service to load execution message\r
this._loadSlcExecutionSteps(uuid, tableModel, false);\r
\r
/**\r
* Refresh the data model.\r
*/\r
- _reloadLogger : function(){\r
+ reloadLogger : function(){\r
var request = org.argeo.slc.ria.SlcApi.getListSlcExecutionsService();\r
request.addListener("completed", function(response){ \r
var messages = org.argeo.ria.util.Element.selectNodes(response.getContent(), "//slc:slc-execution");\r