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.
Comment: Reverted from v. 23

...

This page provides the following information:

Table of Contents
minLevel2

More information

Get-data Macro

The general form is:

...

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
nameGroup Name.Field Name
format#,##0.00
separatornewline

Default value

In this example, there is a date to get.

Code Block

{date-data:YearMonthDay|format=yyyy-MMM-dd}today{date-data}

{get-data:name=YearMonthDay|format=yyyy-MMM-dd}{get-data}

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
nameYearMonthDay
formatyyyy-MMM-dd
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
nameYearMonthDay
formatyyyy-MMM-dd
separatornewline
 

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 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}

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. Select the plus sign to add one or more date displays, selected from the calendar picker provided by the date data macro.

repeating-data
nameMonthDayYear
orderasc
YearMonthDayINLINEyyyy-MMM-dd

Data selected is displayed from the first date data macro only.INLINE

Get Data
nameYearMonthDay
formatyyyy-MMM-dd
separatornewline
 
Wiki Markup
{scrollbar:icons=false}