Skip to Content
avatar image
Former Member

XML Binding to an expand Table

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 29, 2015 at 08:17 PM

    Referencing entry by index is possible only in jsonmodel, in odatamodel - only by key

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 25, 2015 at 08:47 AM

    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

    Add comment
    10|10000 characters needed characters exceeded