How to reset the filter value of FilterInput by API?

Hi,

I have a FilterInput in a async table that shows records from a web service result, encapsulated on a FilterInputTableProvider. The table is refreshed by a command button. On a new refresh the table shows the new lines.

The problem is that on a new refresh, if the FilterInput has a value, the lines come filtered, and not all lines are shown. I want to avoid the necessity for the user to reset the FilterInput value, and I am trying to do it programmatically. My strategy is to change the value using the API on a new refresh of the table (on the action of the async button, for example) but I cant find any method on this object to change his value to null. I have searched and tried all the methods of this component, without success. Does someone knows if it possible to change the value by API?

Thanks in advance,
Pedro

Hi,

is there anyway to make FilterInput null or empty string when Async Table is refreshed.

Thanks in advance,
Suchetha.

Hi,

I made it work by using client side API.

var table = CAF.model(’#{activePageBean.clientIds[“yourtablename”]}’);

if(table !== null)
{
table .filter("");

}

thanks,
Suchetha.

Hi,

I made it work by using client side API.

var table = CAF.model(’#{activePageBean.clientIds[“yourtablename”]}’);

if(table !== null)
{
table .filter("");

}

thanks,
Suchetha.