I have a list of data coming from data action in which I want to implement search by (name) on the table. I have used list filter to filter the data by the input and then appending the list using list all hence finally storing the data in a variable and displaying it. and I added if-else statement to display all the data of the table when the input for the search is null but I am getting no data as soon as I search for a name. Can someone help me with the same? Attaching oml for better understanding.Screen name is Admin/Users. Thank you in advance.
Hi Aman,
Replace your list filter condition with this
Index(GetProgress.Users.Current.UserName,SearchEmployees) <> -1
Regards,
Vaishali
It works, thanks alot.
Just put the search filter into the data action by using the local variable of the screen. And try to refresh the data action on the onchangeevent screen event action.
Hope this helps
Thanks
Prince
into the data action as in from where I am calling the data?
Data action should be set as at start and when you type into the input create a onchange or on keypress event and refresh the data action.
I think you can follow what @Vaishali Shrivastava has suggested. Just an addition, clear the EndUsers list before appending all search results.
Rahul
As Vaishali suggested use index function in your list filter
Also there is no need to use both ListAppendAll and Assign to assign the values in EndUsers list, any one of them sufficient .
Hope it helps,
Thanks, it helped alot.