Skip to Content
2
Feb 07, 2020 at 02:44 PM

SAPUI5: Structure for displaying Model Values in a Table.

84 Views

Hello,

as the Title states, i do have a Model which does look as the following:

exampleModel = [0:{name: "Hallo Welt", number: 0}, 1:{name: "example", number: 1}]

I do have in the View - XML:

a defined Table with

<Table>  
  <columns> 
    <Column name="Name">
    </Column>

    <Column name="Number">
    </Column>  
  </columns>
</Table>

I would love to display the Values of exmapleModel for name, in the "Name" Column and number in the "Number" Column.

How do i do that?