Can i add a repeater filter logic in a variable?

repeater-widget

#1

Hi all,

I’m trying to filter a repeater adding some || logic. It works if I use a string as a filter but fails if I use the same string as a global variable value.

Can you tell where it’s going wrong?
Is there any other way of achieving this?

Many thanks in advance!
Evgenia

File:
Multi-facet-filter-test.rp (52.8 KB)


#2

Global variables will be treated as strings.
so your filter

[[FilterLogicVariable]]

equals to

[[" TargetItem.Column0 == ‘Pia Spade’ || TargetItem.Column0 == ‘Thuy Ardon’ "]]

not

[[TargetItem.Column0 == ‘Pia Spade’ || TargetItem.Column0 == ‘Thuy Ardon’ ]]


#3

Oh, I wasn’t aware of that.
Thank you!