cancel
Showing results for 
Search instead for 
Did you mean: 

Smart filter value help disable validation

0 Kudos

Hello,

I created a service based on a CDS view and used it to create a worklist app with a smart filter bar and smart table. I also used annotations to add value helps. My problem is that for some filters I want the user to be able to filter on values of their choosing, even if the Value Help doesn't return these values. Right now if a value is entered that is not returned from the service, the field's state becomes an Error state and the message "Invalid entry" appears.

How do I prevent this?

Thanks,

View Entire Topic
0 Kudos

I have achieved the required behavior by adding a listener on the "initialized" event of the smart filter bar, and removed all validators from that control:

onFilterBarInitialized: function(oEvent){
	var oFilterControl = oEvent.getSource().getControlByKey("<KEY>");
	if(oFilterControl){
oFilterControl.removeAllValidators();
} }