Data Item as Filter in Filter Collection

liminana

New Member
Hello. I am filtering a collection with the filter read from a data item.

View attachment 20190808121921_Action Properties.png

If I use this method I get an error because the variable inside the data item is not updated and remains with the name.

View attachment 20190808122056_Data Properties.png

Result inside the VBO - Collection Manipulation:

View attachment 20190808122502_Object Studio - Edit - Utility - Collection Manipulation - [PAUSED].png

But if I use the filter written directly as text, it works:

View attachment 20190808122720_Action Properties.png

View attachment 20190808122750_Object Studio - Edit - Utility - Collection Manipulation - [PAUSED].png

Does anybody know how to use a text data item as filter or is not possible?
 

gil.silva

Active Member
Hello liminana,

I understand your issue, the problem is related to the special characters in BP, in this case, the double-quotes.
It's possible to escape the special character using triple double quotes, but actually, I wasn't able to replicate it using a Data item.

The best way to do it it's to use a Calculation stage, prior to your Filter Collection action with the filter that you created and store it in your Data Item, then just use the Data Item in the Filter input, without problems.
 

liminana

New Member
Hello gil.silva.

Thank you for your answer. With the calculation you mention is the only way to make it work.
 
Top