on 01-20-2016 9:45 AM
Hi there,
I've generated a SAPUI5 User Interface to approve/decline tasks.
I've added an additional view.
Now I had the problem that every time the UI has been launched for the first time the screen remained empty (e.g. in Chrome's Incognito mode).
The reason was that the JSESSIONMARKID has changed within the application loading.
This lead to the following error:
Possible session fixation attack detected! Contact your system administrator with a reference to SAP Note 1417679!
I've solved the issue by changing the oData model from an asynchronous model to a synchronous one:
odataTaskDataSvcUrl : "/bpmodata/taskdata.svc/",
bpmPrefixParameter : "/?prefixReservedNames=true",
// get BPM Task instance ID from the URL
var taskId = jQuery.sap.getUriParameters().get("taskId");
// connect OData model against BPM TaskData Service
var odataTaskDataSvcUrlWithPrefix = this.odataTaskDataSvcUrl + taskId + this.bpmPrefixParameter;
//var configODataModel = {json:true, loadMetadataAsync: true};
var configODataModel = {json:true, loadMetadataAsync: false}; //Changed from standard
var odataModel = new sap.ui.model.odata.ODataModel(odataTaskDataSvcUrlWithPrefix, configODataModel);
The question is:
Why is it created as a asynchronous oData model by default?
Thanks in advance.
Best regards,
Thorsten.
it works for me with the async=true
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.