cancel
Showing results for 
Search instead for 
Did you mean: 

How to access request object in Model Provider Class

jzeifang
Participant
0 Kudos

Dear specialists,

I want to define the data model of my OData service dynamically depending on an URI paramter of my HTTP request. But so far I did not find any possibility to access the request object in the model provider class.

Does anybody has a hint for me?

Many thanks in advance.

Best regards,

Juergen

Accepted Solutions (0)

Answers (1)

Answers (1)

AshwinDutt
Active Contributor
0 Kudos

Hello Zeifang,

Please check Krishna Kishor Kammaje reply here -> talks about creation of the model dynamically

Dynamic entitys | SCN

Regards,

Ashwin

jzeifang
Participant
0 Kudos

Hello Ashwin,

thanks for your reply.

In the linked discussion it is explained how to dynamically create a data model. But what still is missing for me is the possibility to access the http request, especially the URI parameters.

Example:

http://[server]/[service]?[parameter=value]

And depending on the value of the parameter I want to define the model.

Thanks.

Regards,

Juergen