[xwiki-users] Working with query results...

2009-01-15 Thread Kevin_C
I have the following code in one of my pages and it does what I am expecting however I'd like to try and generalize it some. #set ($hql = , BaseObject as obj where obj.name = doc.fullName and obj.className = 'CPA_FAQs.FAQClass' and doc.space='MySpace') #set($recentDocs =

Re: [xwiki-users] Working with query results...

2009-01-15 Thread Marius Dumitru Florea
Hi Kevin, Kevin_C wrote: I have the following code in one of my pages and it does what I am expecting however I'd like to try and generalize it some. #set ($hql = , BaseObject as obj where obj.name = doc.fullName and obj.className = 'CPA_FAQs.FAQClass' and doc.space='MySpace')

Re: [xwiki-users] Working with query results...

2009-01-15 Thread Marius Dumitru Florea
Marius Dumitru Florea wrote: Hi Kevin, Kevin_C wrote: I have the following code in one of my pages and it does what I am expecting however I'd like to try and generalize it some. #set ($hql = , BaseObject as obj where obj.name = doc.fullName and obj.className = 'CPA_FAQs.FAQClass' and

Re: [xwiki-users] Working with query results...

2009-01-15 Thread Kevin_C
## Add space=MySpace to the query string of the URL #set($lookupSpace = $request.space) I ended up using this as the code is in a default page for a parent space so I can't add the correct parameter to the Url. #set($space = $entry.substring(0, $entry.indexOf(.))) Thanks for the great info!