Filter collection

maduri0909

New Member
Hi guys,
How to use filter collection with AND and OR??
For example..

"[Name]=' "&[Collection1.name]" ' " AND [age]=' "&[Collection1.age]" ' "
Above one is not working..
Please help me out with solution..

Thanks,
Anusha.
 

sivagelli

Well-Known Member
"[Name]=' "&[Collection1.name]" ' " AND [age]=' "&[Collection1.age]" ' "
While applying filter, you have to use the field names and not Collection name dot field name.
If Name and Age are the fields of collection, you can use "Name ="&[DataItem1]&"AND Age="&[DataItem2]&". If you have the values to compare Name and Age in data items DataItem1 and DataItem2 respectively.

Hope this helps!
 

maduri0909

New Member
While applying filter, you have to use the field names and not Collection name dot field name.
If Name and Age are the fields of collection, you can use "Name ="&[DataItem1]&"AND Age="&[DataItem2]&". If you have the values to compare Name and Age in data items DataItem1 and DataItem2 respectively.

Hope this helps!

Hi

Thankyou for responding..
Its not working..
 

sivagelli

Well-Known Member
If the DataItem1 is text type add single quotes, I missed that point. Like below-
"Name ='"&[DataItem1]&"' AND Age="&[DataItem2]&"
 
Top