From version 2.1
edited by Pierre Dubois
on 2011/10/17 15:26
To version 3.1
edited by Pierre Dubois
on 2012/05/31 15:18
Change comment: Imported from XAR

Summary

Details

Icon Page properties
Content
... ... @@ -1,8 +1,16 @@
1 -Access counters to generate incremental values
1 +Retrieve incremental values
2 2  
3 +
4 +
3 3  == Functions ==
4 -=== get(name, format) ===
5 -Return a new counter value.
6 -* format. Can be a specific java format like 0000
6 +=== get(keyName, format) ===
7 +Retrieve a counter value
8 +* keyName. The counter name
9 +* format. A java formatting of the counter
7 7  
8 -return: The value as a String
11 +example:
12 +{{code language="javascript"}}
13 +var str = Counter.get("mycounter", "00000");
14 +{{/code}}
15 +
16 +return: the counter value as a string
This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 9.11.5 - Documentation