migrateFieldData: Migrate and convert the data of one form field into another

View source: R/formField.R

migrateFieldDataR Documentation

Migrate and convert the data of one form field into another

Description

With this function, the data from one form field (column) can be moved to another form field and converted with a user-supplied function.

Usage

migrateFieldData(
  .data,
  from,
  to,
  fn = function(x) x,
  idColumn = as.name("_id")
)

Arguments

.data

remote records object of the form online

from

the source form field from which to get the data

to

the destination form field which will receive the converted data

fn

the user-supplied conversion function; default is to do nothing

idColumn

the id column. The default is ⁠_id⁠

Value

The form field schema after the addition. This will be the form field schema from the server if changes are uploaded.


bedatadriven/activityinfo-R documentation built on Dec. 21, 2024, 8:23 a.m.