How I can delete a row from tablerows (not from collection)?

I made a query with mandatory criteria the user have to select, but the others non mandatory criteria conditions can lead to multiple user criteria (e.g., check-boxes , drop-downs list and regular fields). So I can’t code the conditions or filters in advance, because I have no idea, which criteria the users will select.
Currently, I have moved the initial query result to a table with:
$w(“#table1”).rows = tableRows;

Actually, I have in mind do do a loop in the tablerows and delete the rows that don’t match the user’s criteria.
I also have no idea how I can search the non-matching rows, but I believe It’s manageable. Your help for that one also could help me.

Hi,
Check out this article about creating search for your site.

Thanks, for your reply. I of course have read this article, but it couldn’t help me. On the mean time, I found a solution to my issue, by defining a second table, executed a loop and loaded into it only the rows matching the additional criteria. I then set the value of the $w(" #table1 ").rows with the second table and it works perfectly.

1 Like