UploadSettings: UploadSettings

Description Usage Arguments Details Value See Also

View source: R/UploadSettings.R

Description

UploadSettings module provides UI input elements and server logic for defining, saving and retrieving upload settings, and for uploading a csv table with transactions.

Usage

1
UploadSettings(input, output, session, db, helps = NULL)

Arguments

input

list from shiny session

output

list from shiny session

session

list from shiny session

db

chr of database file (full path and file name)

helps

NULL or list with named strings as elements for help texts used in UI elements. Names correspond to elements where texts can be changed: refAcc_type, nameCol, ibanCol, bicCol, dateCol, refCol bookCol, valueCol, currCol, colSep, decSep, nSkip, maxLines, headerBool, dateFormat

Details

This is the server logic of the module. It handles loading and saving upload settings, reading a uploaded table, and doing a quality control. Since the upload settings change with the selection of saved upload settings, the second row of the UI input elements is completely rendered in the server. Their help texts (bsPopover) are also rendere in the server.

For loading and saving upload settings there is a selectize. Upload settings are saved with a name in the database with entry Settings in table storage in the list element upload. The selectize presents saved upload settings and by clicking on a name, these settings are loaded. If the save button on the right to it is clicked, the current settings will overwrite the previously saved ones. (This is not in a reactive, so changes will take effect after app restart) If no upload settings were saved, there is a fallback mechanism. New names can be entered and saved.

Value

list of 3 elements

See Also

Other application functions: EnteringModalUI, EnteringModal, UploadSettingsUI, abacusApp


mRcSchwering/abacus documentation built on May 21, 2019, 9:18 a.m.