Skip to content

SaveToVirtualField

mapping category: cdm-helpers no `||`

Stores a single source value into a named virtual field on a CDM table.

Special mapping rule used to store a single value from a source table into a virtual field on a CDM table. Virtual fields are not visually represented in Rabbit in a Hat, so this rule is placed on a transaction to an otherwise unrelated field. The transaction effectively writes to the named virtual field instead.

Parameters

1virtualField Mandatory — accepts: field

The name of the virtual field, in :-notation.

Input type

  • DATE
  • FLOAT
  • INT
  • STRING

Output type

Does not produce output to a CDM field; the value is stored only in the named virtual field.

Requires

  • Can only save to virtual fields. For actual fields make a transition in Rabbit in a Hat.
  • The virtual field referenced must be defined on the CDM table.

Examples

Save to a virtual field

SaveToVirtualField(:care_site_map)

See also

GetCDMFieldValue, GetCDMTableId