Quantcast
Channel: SCN : Discussion List - SAP Business Process Management
Viewing all articles
Browse latest Browse all 791

Generated SAPUI5 UI is not working

$
0
0

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.


Viewing all articles
Browse latest Browse all 791

Trending Articles