Hi,

I was trying to list all persons related to a mmbaseuser with a certain defaultcontext, but the 'defaultcontext'-field is implemented as a NODE-field, I believe. I wanted to match on name, but the 'defaultcontextfield' contains a number.

<mm:listcontainer path="company,posrel,person,posrel,mmbaseusers" fields="mmbaseusers.defaultcontext">

<mm:constraint field="mmbaseusers.defaultcontext" operator="EQUAL" value="default" />


</mm:listcontainer>

Above won't work since I'm comparing a number with a contextname. Because it's implemented as a NODE-field (and not a relation) I can not add it to the path attribute.

The question: is there an easy way to alter this query so I can match on name? I do not know the nodenumber of the context upfront to compare with and I was hoping I didn't have to add another query inside for performance-reasons.

Regards, Ted

--
Ted Vinke
Software Developer
First8 BV / Ewycksgroep

Groenestraat 294 | Postbus 31006
6531 JC Nijmegen | 6503 CA Nijmegen

t +31 (0)24 348 35 70
f +31 (0)24 348 35 71

[EMAIL PROTECTED]
http://www.first8.nl
_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to