Hi!

Caleb and I have been chatting this afternoon about a solution to pass 
the value of a variable to a query string. Thanks Caleb!

Something like this...

##$species is defined simply by...

#set($species = '%babo%')

##and the query string is constructed by using + to concatenate stubs 
including the value of that variable...

#set($query = ", BaseObject as obj, StringProperty as prop where 
doc.fullName = obj.name and obj.className='Users.PdrUserClass' and 
obj.id=prop.id.id and prop.id.name='Species' and prop.value like '" + 
$species + "' order by doc.fullName asc")

This works great with com.xpn.xwiki.objects.StringProperty properties, 
but not with com.xpn.xwiki.objects.StringProperty ones.

Please, do you know why and what is required to filter by properties of 
that type? Thanks!

Ricardo

-- 
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to