cancel
Showing results for 
Search instead for 
Did you mean: 

Generated SAPUI5 UI is not working

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos

it works for me with the async=true

Former Member
0 Kudos

Jun Wu wrote:

it works for me with the async=true

Also in Chrome's Incognito mode?

Do you have more than one view?