extractSchemaFromFields: Create a new form schema copied from each form field...

View source: R/records.R

extractSchemaFromFieldsR Documentation

Create a new form schema copied from each form field represented in a remote records object

Description

This function is useful for creating new forms based on existing forms and may be used to copy only the fields in a single form or any combination of fields in a form tree that can be fetched with getRecords. Note some form elements such as section headers will not be represented.

Usage

extractSchemaFromFields(x, databaseId, label, useColumnNames = FALSE, ...)

Arguments

x

the remote records object fetched with getRecords.

databaseId

the id of the database where the form should reside.

label

the label of the form

useColumnNames

change the label of each field to the corresponding column name in the remote records object

...

parameters to pass on to formSchema


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