How to filter some data in memory (without DB queries)

Certified Senior Developer

Hi,

I'm coding a simple CRUD sub-interface that is integrated inside a parent interface :
A grid displays the lines of the table, and each line contains buttons to edit or remove lines. There is another button to allow to add lines in the Grid.

All theses actions are made in memory through a Rule Input to store data.
At the end, and only at the end, the process store the data in the DB.

Now I would need to filter the lines in the grid (ex : display Docs only, or Photos only) but I need to still do it in memory.

Example:

# Mark           Model       Doc
1 Wolwagen  Golf          document
2 Wolwagen  Polo          photo
3 Nissan        Titan         photo
4 Nissan        Armada    document

To simulate filters, is there any way to do it with Rule Inputs function or mecanism? (I can't use DB query filters).
Is there any way do it without storing the data in 2 differents RI (RI_Docs and RI_Photos) ?

I would need for example a "Show line when" grid attribute, or a way to memory filter the RI...

If you have any idea?

Regards

  Discussion posts and replies are publicly visible