Hi All,
I am new here in outsystems. I am developing a list where the data is coming from a web service which is in structure and not entity. I want to search in the structure list and highlight the row which I searched and get that row in top of the list Is this possible? If possible then how?. In each row there are 3 columns in which 2nd column is input field. Like this I want to search for every row and enter the data in 2nd column and search again. so here the entered data should remain even if some functions are applied on list.
So is this possible to get the specific row of the list which is searched, on top of the list and highlight it, enter the data and search again for other row while keeping the entered data as it is? After clicking submit then only whole data which is entered will be updated.
Hi Kaustubh Kamble,
There are several List manipulation system functions you can use.
Given your requirements, and assuming there's only one record found, you could probably use the ListIndexOf, ListRemove and ListInsert to move the record to the top of the List.
I'd suggest you first add an extra attribute to the List you are displaying with the "natural ordering" of the list, so you can move records back to their original position when you're done searching.
Hope this helps!
Jorge Martins wrote:
Hi Jorge,
Thanks for the solution. I applied this, I searched the item with the help of ListIndexOf action and then stored that item in the temporary variable, then I removed the item with ListRemove and inserted the temporary variable (ListInsert) on the top of the list position i.e 0th position and then highlighted 1st row. It is working as required.
Thank you for your quick reply.
Regards,
Kaustubh
Hi Kaustubh Kamble ,
you can also try attached example for search in the structure list.
Hope this help you.