cancel
Showing results for 
Search instead for 
Did you mean: 

sapui5 odata get binding custom parameters in backend

helmut_sieberer
Participant
0 Kudos

Hello,

in bindings I should be able to add custom parameters:

oCtrl.bindAggregation("rows", {
path: "calendar>/rowSet",
parameters: {
custom: {
calendarStartDate: this.getView().byId("idPC1").getStartDate().toISOString()
}
},
template: oTemplate,
filters: this.calendarFilter,
templateShareable: true,
expand: ("NRowToAppointment")

});

but in backend I have no idea how to get these custom parameters in dpc_ext - I searched in debug mode, but could not find anything related to this parameters.

I put it as a custom parameter because I have no corresponding field in my entityset so I can not use the filter.

thanks for your help

Helmut

Accepted Solutions (0)

Answers (1)

Answers (1)

WouterLemaire
Active Contributor
0 Kudos

I’m not sure if this is possible. You could use a function import to pass custom parameters but for a get entitySet only odata parameters are supported. (Not entirely sure, maybe someone else can confirm)

helmut_sieberer
Participant
0 Kudos

Thanks for your answer,

I read this in the odata v2 documentation, so I thought it should be possible

WouterLemaire
Active Contributor
0 Kudos

indeed on ui5 side it’s not a problem but I don’t you can implement this backend side. Check this question, seems to be similar and solved by a header param instead https://answers.sap.com/questions/12179261/how-to-process-custom-query-parameters-in-the-sap-.html

helmut_sieberer
Participant
0 Kudos

thanks for your answer.

I tried and created an incident at sap support - maybe they answer.

if they do I will report here.

So far I have solved it by a header param...