@kryo91,
As I can understand from your screenshots, you fetch your data in your serverconnect and feed the dataview data_viewRevendeur.
You have a filter in your dataview. This must be the textinput recherche on the left that does what?
What is the exact condition in this dataview filter?
Because I am confused from your initial comment:
Anyway, I suppose you want to show all your records if the search value is ‘*’ or blank… Otherwise search a field (or fields) to contain that search value,
Am I right?
watch the video:
In case of prodSearch textinput is “*” or is empty (lenth()==0) I search for something that I’m sure that all the records match, and it is prd_Name.lenth()>0
Otherwise show only products that prd_Name.contains the prodSearch.value
*I used .lowercase()
to tranform both values because contains() is case is case sensitive.
and .trim()
to eliminate whitespaces
I hope it helps