Skip to Content
0

Filter and Sort properties are not working on table column

Feb 21 at 06:32 PM

31

avatar image
Former Member

Hi All,

I have a requirement, to display the data in the table format.

by using sap.ui.table , displayed the table and binding (using Odata model) is also working. But the sort and filter properties are not working.

Using the XML views.

Referred the following blog.

https://blogs.sap.com/2016/09/03/sapui5-sapuitable-xml-view/

Can any one help in this regards.

Following is the code i am using.

<table:Table id="Promo" visibleRowCount = "10" firstVisibleRow = "3" electionMode = "Single" enableBusyIndicator = "true" enableSelectAll = "false" navigationMode = "Paginator" selectionMode = "Single" rowSelectionChange= "rowSelect" rows = "{ path : 'modelName>/EmpSet', templateShareable:true }">

<table:columns>

<table:Column width="11rem" filterProperty = "modelName>fname" sortProperty ="modelName>fname" >

<Label text="Promocode"/>

<table:template> <Text text="{modelName>fname}" templateShareable="true"/> </table:template>

</table:Column>

<table:Column width="11rem"> <Label text="lname"/>

<table:template> <Text text="{modelName>lname}" templateShareable="true"/> </table:template>

</table:Column>

</table:columns>

</table:Table>

Thanks,

Kasi.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Jun Wu Feb 21 at 06:46 PM
0

does your odata support sort and filter?

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

How to check whether odata support these properties or not.

Is it version dependent?

0
Former Member

ask your odata developer, it has to be coded.

0