Description Usage Arguments Details Value See Also
View source: R/formServerFactory.R
This factory creates a function that handles the server-side functionality of the
formUI. It is responsible for loading data into the form for editing, collecting
the data after submitting them by the user and validating the user input.
1 | formServerFactory(dao, validators = list())
|
dao |
A data access object (DAO), see |
validators |
A list of validators that validate the user input and show an error message,
see |
The purpose of the created function is to be passed as the 'formServer' argument for the
crudTableServer module.
A function that is used by shiny to handle the inputs of the form. The returned function
expects three arguments: input, output and session. It returns a list of
three reactive values:
saveTrigger, which triggers by this function on
submit of the form, after the data are stored into the record reactive value;
loadTrigger, which expects to be triggerred by crudTableServer after the form
data are prepared in the record reactive value in order to load them into the form;
record the list of data values to be passed to/from the form.
formUI, crudTableServer, validator
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.