cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Deactivate filter in Smart table

11-19-2020 8:36 PM
frankmueller9 Participant
3059 views 0 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

Hello,

I have a SAPUI5 app with a Smart Filterbar and a Smart Table similar to this example app

https://sapui5.hana.ondemand.com/#/entity/sap.ui.comp.smarttable.SmartTable/sample/sap.ui.comp.sampl...

I want to avoid that user can filter the data with the Smart Filterbar and the Smart Table, because this could lead to confusions of the user.

I removed therefore the filter button from the Custom Toolbar. But now it is still possible to filter the table by click on the column header.

How can I deactivate this or alternative how can I sync the filter of the Smart Table with the Smart Filterbar?

Best regards

Frank

0 Likes
View Entire Topic
maheshpalavalli
Active Contributor

You can set "filterable" as false for that particular property in the entity in segw. then it will not appear for filtering.

frankmueller9
Participant

I want to filter the table with the Smart Filterbar. If I set the column to not filterable, then I can also not filter the column with the Smart Filterbar.

I only want one filter possibilty (Smart Filterbar) instead of two (Smart Table and Smart Filterbar) or a sync between the controls. Else the users will get counfused.

maheshpalavalli
Active Contributor

frankmueller9, Okay, I got it now, you can pass this property to the smart table.

	app:p13nDialogSettings="{filter:{visible:false}}" 
frankmueller9
Participant

Hi Mahesh,

thank you very much for your reply.

It works.

You have to define the namespace app

xmlns:app="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1"

in the <mvc:View> tag and then you have to set the property

app:p13nDialogSettings="{filter:{visible:false}}"

in the <smartTable:SmartTable> tag to deactivate the filter.

Best regards

Frank

maheshpalavalli
Active Contributor

Thanks for the update, frankmueller9 . Yeah true, you need to mention that namespace 🙂