From version < 2.1 >
edited by Vincent Massol
on 2014/07/21 18:37
To version < 3.1 >
edited by Vincent Massol
on 2014/07/21 18:38
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,9 +1,15 @@
1 1  Shows how many extensions have been created between 2 dates.
2 2  
3 +Use ##confirm=1## to execute.
4 +
3 3  {{groovy}}
4 4  if (request.confirm == '1') {
7 + def total = 0
5 5   services.query.xwql("from doc.object(ExtensionCode.ExtensionClass) as extension where doc.space = 'Extension' and doc.creationDate >= '2013-06-30' and doc.creationDate < '2014-06-30'").execute().each() {
6 -println "* ${it}"
9 + println "* ${it}"
10 + total++
7 7   }
12 + println ""
13 + println "total: ${total}"
8 8  }
9 9  {{/groovy}}

Shows how many extensions have been created between 2 dates.

Use confirm=1 to execute.

Get Connected