Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3441

Bind data to table using filter

$
0
0

tab.bindItems("/OrdItabSet", tab, null, oFilters);

I am developing a table and while binding data to it in need to apply filter my code is as below

XML code

<Table id="idProductsTable"  rows="{/OrdItabSet}" >

 

 

                <columns>

                    <Column>

                        <Label text="Employee Number" />

                    </Column>

                    <Column>

                        <Label text="Employee Name" />

                    </Column>

                    <Column>

                        <Label text="Default Password" />

                    </Column>

 

 

                </columns>

                <items>

                        <Input value ="{OrdItab/Order}"></Input>

                        <Input value="{OrdItab/Order}"></Input>

                        <Input value="{OrdItab/Order}"></Input>

                   

                    </ColumnListItem>

                </items>

            </Table>

 

JS code

var tab = this.getView().byId("idProductsTable");

var oFilters = [ new sap.ui.model.Filter("CustId","EQ", "'"+custId+"'") ];

tab.bindItems("/OrdItabSet", tab, null, oFilters);

 

But its showing no data.


Viewing all articles
Browse latest Browse all 3441

Trending Articles



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