DynamicContentView Query Expression

Posted by Community Admin on 04-Aug-2018 06:08

DynamicContentView Query Expression

All Replies

Posted by Community Admin on 26-Feb-2013 00:00

If this is my Filter expression...

Visible = true AND Status = Live AND  Category.Contains("76fc5c31-868e-42f3-88d1-229754071093") OR Category.Contains("0e40c661-9c4f-436f-b1ec-03bfa4422905")

It's giving me back duplicate results on a couple items (returning 6)....why would that be, is it query syntax?...or is there the ability to do a distinct on this from the DCV controls

I mean if it was PURE linq, I'd just do a .Distinct, but here all I can do is pass it in a FilterExpression.

Posted by Community Admin on 27-Feb-2013 00:00

Oh!....hmm

 I edited the template and plopped in Eval("Status") ...looks like it's dumping in both Live and Master versions with the query??

Wierd thing is when I strip that query out to my own api call (based on the module builder code samples) I only get Live items.

So what causes the above query to return Master...any idea big T?

This thread is closed