cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 bind data from oData function import in my XML view

Former Member
0 Kudos

Hello,

I'm new in SAP UI5 and Gateway, I'm using a function import that takes as import value the URLparams of my application and returns an entitySet. I need to bind this function import to my table created in the XML view, my question is how can I send the URLparam from my controller to my XML View. Someone has an idea ? or I have to take another route?

Many Thanks,

Kalthoum

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thank you for your feedback. I need to call a function import with parameter not to filter in an entityset. Actually, I bind items in my controller as I pass the urlParam to the function import. My question is if I can do more properly this with passing my param in the XML view and do the bind in XML?

former_member227918
Active Contributor
0 Kudos

i am not getting you.....

what i can suggest you as per my understanding is: you can not pass dynamic value for urlparameters from controller to xml view. only static values can be pass in xml.

I think you could post your query more precisely.

pablosilva80
Explorer
0 Kudos
Were you able to pass a dynamic value (urlParameters) on the view?

Thank you
former_member227918
Active Contributor
0 Kudos

cannot in xml

var oParam = {
ID: ""
};
oModel.callFunction("/xyz", {
method: "GET",
urlParameters: oParam,
success: function(oResponse){},
error: function(oError){}
});