Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2355

UI5 Table Binding

$
0
0

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


Viewing all articles
Browse latest Browse all 2355

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>