It's never too late for good advice. I actually ran into a naming issue with my 
project and put it on hold for a bit. When I pick it back up next week I will 
look at using this method instead. Thanks!

Regards,

Jesse

> On May 17, 2016, at 4:21 PM, Eduard Moraru <enygma2...@gmail.com> wrote:
> 
> Hi,
> 
> Note that doc.parent is deprecated and could be removed at some point in
> the future.
> 
> Your query should be the translation of "Get all the documents inside a
> space which has a parent space with the given reference ", i.e. "select
> doc.fullName from XWikiDocument doc, XWikiSpace space where
> doc.space=space.reference and space.parent='Some.Space.Reference'". This
> will give you all the documents inside the immediate child spaces of a
> given space.
> 
> Hope this helps (even if it`s a late reply),
> Eduard
> 
>> On Mon, Apr 11, 2016 at 5:36 PM, Personal <je...@abrightfamily.com> wrote:
>> 
>> Figured it out over the weekend:
>> 
>> where doc.parent = ‘Parent Full Name’
>> 
>> Guess I was trying to make it more complicated than it actually was.
>> 
>> Regards,
>> 
>> Jesse
>> 
>> 
>>> On Apr 8, 2016, at 7:51 AM, Personal <je...@abrightfamily.com> wrote:
>>> 
>>> Per the Query Module documentation:
>>> 
>>> List of child spaces:                                         select
>> space.name from XWikiSpace as space where space.parent = 'Parent Space’
>>> List of all nested documents in a space:      where doc.space like
>> 'Space' or doc.space like 'Space.%’
>>> 
>>> The first gives me the correct spaces but I want the documents (WebHome)
>> and the second gives me every single document in every space below ‘Space’.
>> How do you query for just the documents in the immediate child spaces?
>> Anything I do to narrow the results seems to give me no results and no
>> error. Thanks for any help.
>>> 
>>> Regards,
>>> 
>>> Jesse
>>> _______________________________________________
>>> users mailing list
>>> users@xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/users
>> 
>> _______________________________________________
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
> _______________________________________________
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to