Hi there,
I've a SAPUI5 application deployed on a WAS Java 7.40 SP09 which is working fine.
It's using the SAP BPM OData to retrieve data if a task has been claimed/completed etc.
I'm not sure about the SAPUI5 version, how can find that out?
In my main view I have a method to checkTask() which validates the status of a task:
checkTask : function(taskId) { var oTasksODataModel = sap.ui.getCore().getModel("tasksODataModel"); oTasksODataModel.read("/TaskCollection('" + taskId + "')", null, null, true, fSuccess, fError); function fSuccess(oEvent) { console.log("Task read successfully!"); var status = oEvent.Status; var processor = oEvent.Processor; var oBundle = sap.ui.getCore().getModel("i18n"); var oUIModel = sap.ui.getCore().getModel("UIModel"); if (status == "COMPLETED" || (status == "RESERVED" && processor != getUser() .toLowerCase())) { if (status == "COMPLETED") { var message = oBundle .getProperty("messageStatusCompleted"); sap.ui.commons.MessageBox.alert(message); } if (status == "RESERVED") { var message = oBundle .getProperty("messageStatusReserved"); message.replace('&1', processor .toUpperCase()); sap.ui.commons.MessageBox.alert(message); } oUIModel.setProperty("/processingEnabled", false); }; } else { oUIModel .setProperty("/processingEnabled", true); } }
This method is called in the onInit() method of the view:
onInit : function() { var taskId = getValueOfURLParameter("taskId"); // Create model this.createModel(); // Check if class is not processed yet this.checkTask(taskId); }
In Chrome/IE everything's working as expected:
If a task has already been processed/reserved, a message is displayed (line 17/24 of checkTask()).
But in Firefox the popup doesn't appear, although it's processing the code.
Thanks in advance.
Best regards,
Thorsten.