on 10-29-2015 7:50 PM
Hi,
I have ceated a table, which holds the data of a collection.
Maped like <Table width="95%" items="{path: '/PARTNERCollection' , parameters:{expand : 'PARTNER_ADDRESS'}}"
Within the Exapand PARTNER_ADDRESS I have got a table with only one record.
I want to map ONE entry to one of the tables column like:
<Text text="{/PARTNER_ADDRESS/results/0/TELEPHONETEL}" />
which is not working....
Whats wrong?
Thanks
jens
Hi Kartik,
no, ist not working.
Found a solution:
Insert a "dummy" element, e.g.
<l:HorizontalLayout content="{PARTNER_ADDRESS}">
<Label text="{STREET}"></Label>
</l:HorizontalLayout>
The reason is, that OData Models does not support indexed array.
Jens
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Referencing entry by index is possible only in jsonmodel, in odatamodel - only by key
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
will this help? JS Bin - Collaborative JavaScript Debugging
<Text text="{/PARTNER_ADDRESS/0/CITY}" />
Thanks,
KA
User | Count |
---|---|
86 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.