NIH | National Cancer Institute | NCI Wiki  

Error rendering macro 'rw-search'

null

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{scrollbar:icons=false}

Display and Format Field Data with the Get-data Macro

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, which the Reporting plugin macro, reporting-info, is not able to do. (The Reporting plugin is not installed on this site).

...

More information

Multiexcerpt include
nopaneltrue
MultiExcerptNameExitDisclaimer
PageWithExcerptwikicontent:Exit Disclaimer to Include

Get

...

Data Macro

The general form is:

Code Block
{get-data:name=[Field Name]|format=[date or number format]}Default value{get-data}

...

Get Data
nameYearMonthDay
formatyyyy-MMM-dd
separatornewline
 

Get-data Macro Used with Repeating-data Macro

An example follows.

Code Block
{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}

...

Repeating Data
nameMonthDayYear
orderasc
YearMonthDayyyyy-MMM-ddINLINE

Data selected is displayed The get data macro displays data selected from the first date data macro only.

...