on 10-20-2015 7:00 AM
Hi,
it's possible to bind a view to the data via an index:
this.getView().bindElement("EntitySet>/entity/23");
But it is also possible to bind it to the data via a specific attribute?
Something like this:
this.getView().bindElement("EntitySet>/entity('id=12')";
I think i saw something similar somewhere ...
Would be great!
Regards,
Dominik
Ok, because I haven't solved it I've now rebuilt my application and split the data into two models.
One with the actual data that i want to display and a second (if requested) with the other data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dominik,
Your syntax is correct and will work.
Little side note: You don't specify the entityset before the '>', you'll have to specify the model you want to bind to the view (although if you added the model with key 'entitySet', this will work ). Also refer to SAPUI5 SDK - Demo Kit - Data Binding
Best regards,
Maarten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.