![]() |
Page History
...
The
...
get-data
...
macro
...
displays
...
stored
...
field
...
data
...
and
...
provides
...
for
...
formatting.
...
When
...
data
...
is
...
inside
...
a
...
table-data
...
or
...
repeating-data
...
macro,
...
the
...
get-data
...
macro
...
can
...
retrieve
...
it.
This page provides the following information:
Table of Contents | ||
---|---|---|
|
Multiexcerpt include | ||||||
---|---|---|---|---|---|---|
|
Get Data Macro
The general form is
Code Block |
---|
, which the Reporting plugin macro, reporting-info, is not able to do. (The Reporting plugin is not installed on this site). This page provides the following information: {toc:minLevel=2} [More information|http://www.customware.net/repository/display/AtlassianPlugins/get-data] h2. Get-data Macro The general form is: {code}{get-data:name=[Field Name]|format=[date or number format]}Default value{get-data}{code} |
In
...
this
...
example,
...
there
...
is
...
no
...
data
...
to
...
get.
Code Block |
---|
}{get-data:name=Group Name.Field Name|format=#,##0.00}Default value{get-data}{ |
The output of the get data macro is "Default value."
Get Data | ||||||
---|---|---|---|---|---|---|
| ||||||
Default value |
In this example, there is a date to get.
Code Block |
---|
code} {get-data:name=Group Name.Field Name|format=#,##0.00}Default value{get-data} In this example, there is a date to get. {code} {date-data:YearMonthDay|format=yyyy-MMM-dd}today{date-data} {get-data:name=YearMonthDay|format=yyyy-MMM-dd}{get-data} {code} {date-data:YearMonthDay|format= |
The date data macro establishes the date, initially today's date when the macro was created. Afterwards, in the Edit Contents view select a new date from the calendar picker.
Date Data | ||||
---|---|---|---|---|
| ||||
today |
The date selected changes and the get data macro displays the last date selected when the page is saved and refreshes automatically.
Get Data | ||||||
---|---|---|---|---|---|---|
| ||||||
Get-data Macro Used with Repeating-data Macro
The general form is
Code Block |
---|
}today{date-data} {get-data:name=YearMonthDay|format=yyyy-MMM-dd}{get-data} h2. Get-data Macro Used with Repeating-data Macro An example follows. In the edit view, the graphical plus sign was clicked twice to repeat the data. {code} {repeating-data:MonthDayYear} {date-data:YearMonthDay|format=yyyy-MMM-dd}today{date-data} {repeating-data} {get-data:name=YearMonthDay|format=yyyy-MMM-dd}{get-data} {code} {repeating-data:MonthDayYear} {date-data:YearMonthDay|format=yyyy-MMM-dd}today{date-data} {repeating-data} {get-data:name=YearMonthDay|format=yyyy-MMM-dd}{get-data} {scrollbar:icons=false} |
An example follows.
The date data macro establishes the date, initially the date the macro was created. The repeating data macro displays a plus sign in the Edit Contents view. Click the plus sign to add one or more date displays, selected from the calendar picker provided by the date data macro.
Repeating Data | ||||
---|---|---|---|---|
| ||||
The get data macro displays data selected from the first date data macro only.
Get Data | ||||||
---|---|---|---|---|---|---|
| ||||||