cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Validation on GO Button on Filter Bar

sun197895
Participant
0 Kudos
1,023

Hi,

We have FIORI elements UI app and I need to put a validation when user hits 'GO' button on the Filter bar. I tried attachSearch method and am able to hit this method but the problem I am facing is,..how do I stop the process/search function when the validation fails ? I tried 'return false' on validation failure but it did not help.

Any thoughts please ?

Accepted Solutions (0)

Answers (1)

Answers (1)

ssrinivas
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello sun197895,

Assuming you are using 'Smart table' & it's linked to your filterbar. You can use the event "beforeRebindTable" and apply your validation & return false if validation fails.

Regards,
Srinivas

sun197895
Participant
0 Kudos

Does not work. I mean, beforeRebindTable is not getting triggered in my case. I do not think it is a smartable. When I look at the DoM I see the table as 'responsiveTable'. As I mentioned, the filter bar & the table on the ListView page are FIORI Elements derived. Please suggest if there is any other option.