Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Enhanced Grid Form Element extends the default functionalities of a typical grid element. Unlike the generic grid element that only accepts standard text field as its inputs, this Enhanced Grid Form Element captures data by making reference to another form element. Hence, one can take full advantage of what a typical form element has to offer, e.g. validation, formatting.


Figure 1: Properties of Enhanced Grid Form Element

Apart from setting up the columns, an external form can be set to capture more data that what the grid actually shows. One can also defines the format on the returned data.

Available Format Type

  • Text - Formats the value as text.
  • HTML - Output as HTML.
  • Wiki Markup
    *Date* \- Formats as date. Original Date and New Date format are expected in the "*Format*" field.
    *Format*: \[input format\]\|\[output format\]
    +Example of usage+
    *Original value*: 5/23/2012
    *Expected value*: 2012/5/23
    *Format*: M/d/y\|y/M/d
    Please refer to [Java SimpleDateFormat|http://docs.oracle.com/javase/1.4.2/docs/api/java/text/SimpleDateFormat.html] for Date format.
  • Decimal - Formats as decimal. Number of decimals is expected in the "Format" field.

Enhanced Grid Form Element in a form

Adding a new row would bring up the external form and upon submission, the data will be stored accordingly in the background and in the columns with matching IDs.


Figure 2: Sample working example of the Enhanced Grid Form Element


Figure 3: Adding new entry in the sample working example of the Enhanced Grid Form Element