Description Usage Arguments Details Value See Also
View source: R/UploadSettings.R
UploadSettings module provides UI input elements and server logic for defining, saving and retrieving upload settings, and for uploading a csv table with transactions.
1 | UploadSettings(input, output, session, db, helps = NULL)
|
input |
|
output |
|
session |
|
db |
|
helps |
|
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.
list
of 3 elements
tas NULL
or a Transactions
object as created
with Read_csv
err bool
whether there was an error during upload
msg chr
a possible error message
Other application functions: EnteringModalUI
,
EnteringModal
,
UploadSettingsUI
, abacusApp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.