formServerFactory: A factory that creates a server-side function that handles...

Description Usage Arguments Details Value See Also

View source: R/formServerFactory.R

Description

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.

Usage

1
formServerFactory(dao, validators = list())

Arguments

dao

A data access object (DAO), see dao, whose attributes are to be obtained from the form and provide to the crudTableServer.

validators

A list of validators that validate the user input and show an error message, see validator.

Details

The purpose of the created function is to be passed as the 'formServer' argument for the crudTableServer module.

Value

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:

See Also

formUI, crudTableServer, validator


beerda/crudtable documentation built on July 13, 2020, 2:16 p.m.