Seite 1 von 1

Object Condition find string in comma delimited list

Verfasst: Fr 6. Jun 2014, 12:05
von Michael_S
Hi,

Using a Object condition how would I find all objects containing a string held in a field with comma delimited list?

Var: $con = my string 2
Field: Node_Container
Data: my string 1, my string 2, my string 3

I guess I would need to use "is_string" in the condition but not sure where to start.

Michael.

Re: Object Condition find string in comma delimited list

Verfasst: Fr 6. Jun 2014, 12:36
von Carrear
I would try it with

conditionAdd, operator like and value ,term
conditionor
conditionAdd, operator like and value term,
conditionor
conditionAdd, operator like and value ,term,

... not sure if it works

EDIT - Should be
%,term
term,%
%,term,%

Re: Object Condition find string in comma delimited list

Verfasst: Fr 6. Jun 2014, 12:57
von Michael_S
Carrear hat geschrieben:I would try it with

conditionAdd, operator like and value ,term
conditionor
conditionAdd, operator like and value term,
conditionor
conditionAdd, operator like and value ,term,

... not sure if it works

EDIT - Should be
%,term
term,%
%,term,%
Hi Carrear, that was spot on ... cheers.

Code: Alles auswählen

Object Field: Node_Container
Data: my string 1, my string 2, my string 3

<we:field nameto="con" to="global" type="text" name="NodeContainer_Name" />

<we:condition name="conNode">
	<we:conditionAdd field="Node_Container" compare="LIKE" var="%con%" type="global" />
</we:condition>

<we:listview condition="\$conNode"></we:listview>