Skip to Content
0
May 17, 2016 at 04:29 AM

UI5 Table Binding

1218 Views

Hi team,

I m stuck with binding in one of my view.

I have created Master detail page application. I want to update my detail page table into the Master page.

Below is the code that i have defined in the XML in details view there are more columns.

<Table id="Travel" >

<columns>

<Column width="12em">

<Text text="Trip Number" />

</Column>

<items>

<ColumnListItem>

<cells>

<Text text="{REINR}" />

</cells>

</ColumnListItem>

</items>

</Table>

and in the Master controller.

var table = view1.byId("Travel");

oModel.read("/get_Travel_details", null, [ "$filter=REINR eq '"

+ path1.REINR + "' and SEQ eq '" + path1.REINR + "'" ], false,

function(data, response) {

json1 = new sap.ui.model.json.JSONModel(data);

table.setModel(json1, "/");


}

here i got the response in the JSON object.

I can't use the bind aggregation method in this case. because cells are already defined in the view.

Thanks

Nishant