cancel
Showing results for 
Search instead for 
Did you mean: 

@sap-ux/ui5-middleware-fe-mockserver - getInitialDataSet

08-08-2023 8:25 AM
Frank-Kohler Associate
1263 views 1 comments
0 Likes
SAP Managed Tags
Subscribe

we do our first steps with @sap-ux/ui5-middleware-fe-mockserver

we want to use getInitialDataSet method of Mockserver contributor API to distinguish between several scenarios.
e.g.: Loading data as expected, returning no data, getting an error during initial load

Three questions:
1. How can we debug the method getInitialDataSet?
2. How can we influence the parameter contextId for the method getInitialDataSet to distinguish between the scenarios
3. Can we throw an error during the initialDataSet to simulate that the initial loading has an error?

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

Dinu
Active Contributor
0 Likes

I suppose you want to know how to set the parameter contextId.

It is tenantId, set in the url as described here. You have to set the configuration parameter contextBasedIsolation and request data with a path prefix tenant-ddd.

If you can use that to setup different scenarios as you envisage, I don't know. I would be very interested to hear about your experience when you are done.