Skip to Content
0
May 25, 2018 at 11:08 AM

Clear FilerProperty button in SAPUI5

158 Views

Hello,

I am trying to create a button that clear whatever the user typed inside the filter field.

Once clicked the text field should go blank. Is there a property on SAPUI5 that can perform this kind of functionality? The columns were created using the following pattern of code:

var colList = [];

var oMaintPlant = createColumn("MaintPlantID", "Plant", "MaintenancePlant"); colList.push(oMaintPlant); oMaintPlant.setWidth("80px"); oMaintPlant.setFilterProperty("MaintenancePlant"); oMaintPlant.setSortProperty("MaintenancePlant"); oMaintPlant.setShowFilterMenuEntry(true); oMaintPlant.setShowSortMenuEntry(true);

var oTable = createTableWithVisibleRowCount("WorkOrderSelectionTable",colList,"POE/Plant Maintanance/QueryTemplate/XAC_ApproverWO", 18); return oTable;

Attachments