on 07-19-2017 3:21 PM
Entity is like a data set which holds the values in variables/properties. You first say that which is the dataset i.e. entity for the table. Then, bind the properties in that entity to the columns or rows in the table. In a view XML, you can map only one entity set for a control.
If you want to use data from multiple entities, then you have to manually set the properties to the controls in the table.
Regards,
Sharath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
thx for you answer.
The binding works via <table [...] items="{XY}">.
All data is now visible.
Is it also possible to filter this data to only see the relevant data based on the atm viewed detail page?
I'm pretty sure this is only possible with the help of the controller, but I cant get it going.
best regards
Johannes
Hi,
i got the issue solved today. Thank you a lot for your patience and answers.
The reason was that there was no navigation property/association between the detaildata and the masterlist data in the oData Service. I got it this morning.
Best regards
Johannes
think of the Entities as lists or properties of an object.
Supposed you have a model which contains a simple property (name), and a complex property (addresses). Think about addresses for a second. Addresses is a list of Address. Further, Address is a complex object itself probably composed of Street, City, State, Country, etc.
so if you had a list of address, then you would bind your UI list control with the Addresses (to bind the root) and then each Address item could have text properties of the Address properties (Street, City, State, Country), etc.
(pseudo code for simple explanation)
<List items="{Addresses}"> <!-- this line binds the list -->
<ObjectItem>
<Text text="{Street}, {State}" /> <!-- notice you can also put multiple properties on the same property binding -->
<Label text="{Country}" />
</ObjectItem>
</List>
hope this helps understand the binding... also, please take a look at the sapui5 explored tab - aggregation binding
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I can see that in the Table with id incidentList you are binding fields from the entity set 2, but where have you bound the entity set 2 with the table? Without providing a binding path to the required entity set in the table it is not possible to bind fields from the entity set inside the cells of the table.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.