Quantcast
Viewing all articles
Browse latest Browse all 1358

Dashboard counter for App Within Minutes Entries

I would like to display a dashboard counter for pages in my app Within Minutes (AWM).

I have a AWM-Class with a property:

* Title (<AWMDATA>: Static List)

Now I want to count how many pages have the given entry VALUEfromAWMDATA.
I’m not able to code the xwql-statement so far…

Something like this:

{{velocity}}
#set ( $count = 0 )
  #foreach ($item in $services.query.xwql("select <?>.<AWMDATA> from XWikiDocument as <?>").execute())
    #if ( $item.contains(<VALUEfromAWMDATA>))
      #set ( $count = $count + 1 )
    #end
  #end
$count Pages with <VALUEfromAWMDATA>
{{/velocity}}

4 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 1358

Trending Articles