From: Nathan Y. <na...@cr...> - 2008-04-17 15:29:05
|
We're doing something like this (ie, "get a list of users that are in a category, then get a list of open tasks for the user") using Templates. Doesn't work for all situations but does for ours. On Wed, Apr 16, 2008 at 9:21 PM, James Taylor <jam...@gm...> wrote: > Hi. I'm wondering if anyone knows how to make nested asks. Essentially I > would like make a nested set of queries such that: 1) The first query > obtains a set of pages (this is standard using an 'ask'), and 2) the second > query obtained a different set of pages that used the page names from the > first set of pages. So for example: > > > 1) Obtain a set of pages: > Pages1Set = {{#ask:[[Category::Category1]] [[MyProperty::P1]]}} > > > > 2) Obtain a second set of pages that depend of the first: > > for all elements of PagesSet > Pages2Set = {{#ask:[[Category::Category2]] > [[MyProperty2::Page1Set(index).pageName]]}} > Page2SetTotal = Page2SetTotal + Pages2Set > > > 3) Display the results in some table > > I bet the syntax could be something like below, but this doesn't work: > {{#ask:[[Category::Category2]] [[MyProperty2::{{#ask:[[Category::Category1]] > [[MyProperty::P1]]}}]]}} > > > -James > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > |