Title: | Reporte de avances de oficina |
---|---|
Description: | Las personas de la oficina usan esta app para reportar el estado de avance de sus actividades específicas. |
Authors: | Samuel Calderon [cre, aut] |
Maintainer: | Samuel Calderon <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.4.6.9000 |
Built: | 2025-01-29 02:52:58 UTC |
Source: | https://github.com/calderonsamuel/appReporteAvance |
These functions are convenient wrappers for shinyWidgets::sendSweetAlert()
.
alert_success( session = getDefaultReactiveDomain(), text = NULL, btn_labels = "Ok", btn_colors = "#3085d6", html = FALSE, closeOnClickOutside = TRUE, showCloseButton = FALSE, width = NULL, ... ) alert_error( session = getDefaultReactiveDomain(), text = NULL, btn_labels = "Ok", btn_colors = "#3085d6", html = FALSE, closeOnClickOutside = TRUE, showCloseButton = FALSE, width = NULL, ... ) alert_info( session = getDefaultReactiveDomain(), text = NULL, btn_labels = "Ok", btn_colors = "#3085d6", html = FALSE, closeOnClickOutside = TRUE, showCloseButton = FALSE, width = NULL, ... ) alert_warning( session = getDefaultReactiveDomain(), text = NULL, btn_labels = "Ok", btn_colors = "#3085d6", html = FALSE, closeOnClickOutside = TRUE, showCloseButton = FALSE, width = NULL, ... )
alert_success( session = getDefaultReactiveDomain(), text = NULL, btn_labels = "Ok", btn_colors = "#3085d6", html = FALSE, closeOnClickOutside = TRUE, showCloseButton = FALSE, width = NULL, ... ) alert_error( session = getDefaultReactiveDomain(), text = NULL, btn_labels = "Ok", btn_colors = "#3085d6", html = FALSE, closeOnClickOutside = TRUE, showCloseButton = FALSE, width = NULL, ... ) alert_info( session = getDefaultReactiveDomain(), text = NULL, btn_labels = "Ok", btn_colors = "#3085d6", html = FALSE, closeOnClickOutside = TRUE, showCloseButton = FALSE, width = NULL, ... ) alert_warning( session = getDefaultReactiveDomain(), text = NULL, btn_labels = "Ok", btn_colors = "#3085d6", html = FALSE, closeOnClickOutside = TRUE, showCloseButton = FALSE, width = NULL, ... )
session |
The |
text |
Text of the alert. |
btn_labels |
Label(s) for button(s), can be of length 2,
in which case the alert will have two buttons. Use |
btn_colors |
Color(s) for the buttons. |
html |
Does |
closeOnClickOutside |
Decide whether the user should be able to dismiss the modal by clicking outside of it, or not. |
showCloseButton |
Show close button in top right corner of the modal. |
width |
Width of the modal (in pixel). |
... |
Other arguments passed to JavaScript method. |
HTML code for sweet alerts
shinyWidgets::sendSweetAlert()
Get App data
Get App data
R6 class that allows to get the information needed for an User session of the app.
appReporteAvance::DBManager
-> appReporteAvance::User
-> appReporteAvance::Organisation
-> appReporteAvance::Group
-> appReporteAvance::Process
-> appReporteAvance::Task
-> AppData
appReporteAvance::DBManager$db_execute_statement()
appReporteAvance::DBManager$db_get_query()
appReporteAvance::DBManager$db_make_query()
appReporteAvance::User$user_add()
appReporteAvance::User$user_delete()
appReporteAvance::User$user_edit_names()
appReporteAvance::Organisation$fetch_orgs()
appReporteAvance::Organisation$org_add()
appReporteAvance::Organisation$org_delete()
appReporteAvance::Organisation$org_edit()
appReporteAvance::Organisation$org_finalize()
appReporteAvance::Organisation$org_initialize()
appReporteAvance::Organisation$org_user_add()
appReporteAvance::Organisation$org_user_delete()
appReporteAvance::Organisation$org_user_edit()
appReporteAvance::Group$group_add()
appReporteAvance::Group$group_delete()
appReporteAvance::Group$group_edit()
appReporteAvance::Group$group_initialize()
appReporteAvance::Group$group_select()
appReporteAvance::Group$group_set_as_favorite()
appReporteAvance::Group$group_unit_add()
appReporteAvance::Group$group_unit_delete()
appReporteAvance::Group$group_unit_edit()
appReporteAvance::Group$group_user_add()
appReporteAvance::Group$group_user_delete()
appReporteAvance::Group$group_user_edit()
appReporteAvance::Process$fetch_processes()
appReporteAvance::Process$fetch_units()
appReporteAvance::Process$process_add()
appReporteAvance::Process$process_delete()
appReporteAvance::Process$process_edit()
appReporteAvance::Process$unit_add()
appReporteAvance::Process$unit_delete()
appReporteAvance::Process$unit_edit()
appReporteAvance::Task$fetch_reports_to_download()
appReporteAvance::Task$progress_add()
appReporteAvance::Task$report_add()
appReporteAvance::Task$report_archive()
appReporteAvance::Task$report_delete()
appReporteAvance::Task$task_add()
appReporteAvance::Task$task_archive()
appReporteAvance::Task$task_delete()
appReporteAvance::Task$task_edit()
appReporteAvance::Task$task_get_history()
appReporteAvance::Task$task_report_progress()
new()
Start a session of app data based on an user email
AppData$new(email = Sys.getenv("REPORTES_EMAIL"))
email
The email the user started the session with.
clone()
The objects of this class are cloneable with this method.
AppData$clone(deep = FALSE)
deep
Whether to make a deep clone.
These functions have predefined styling and icons for labels.
The defaults are inherited from shinyWidgets::actionBttn()
.
btn_add(inputId, icon = NULL, size = "md", block = FALSE, no_outline = TRUE) btn_trash(inputId, icon = NULL, size = "md", block = FALSE, no_outline = TRUE) btn_agregar( inputId, icon = NULL, size = "md", block = FALSE, no_outline = TRUE ) btn_guardar( inputId, icon = NULL, size = "md", block = FALSE, no_outline = TRUE ) btn_modificar( inputId, icon = NULL, size = "md", block = FALSE, no_outline = TRUE ) btn_cancelar( inputId, icon = NULL, size = "md", block = FALSE, no_outline = TRUE ) btn_eliminar( inputId, icon = NULL, size = "md", block = FALSE, no_outline = TRUE ) btn_minus(inputId, icon = NULL, size = "md", block = FALSE, no_outline = TRUE) btn_refresh( inputId, icon = NULL, size = "md", block = FALSE, no_outline = TRUE ) btn_expand(inputId, icon = NULL, size = "md", block = FALSE, no_outline = TRUE) btn_user_add( inputId, icon = NULL, size = "md", block = FALSE, no_outline = TRUE ) btn_user_remove( inputId, icon = NULL, size = "md", block = FALSE, no_outline = TRUE ) btn_user_edit( inputId, icon = NULL, size = "md", block = FALSE, no_outline = TRUE ) btn_editar(inputId, icon = NULL, size = "md", block = FALSE, no_outline = TRUE)
btn_add(inputId, icon = NULL, size = "md", block = FALSE, no_outline = TRUE) btn_trash(inputId, icon = NULL, size = "md", block = FALSE, no_outline = TRUE) btn_agregar( inputId, icon = NULL, size = "md", block = FALSE, no_outline = TRUE ) btn_guardar( inputId, icon = NULL, size = "md", block = FALSE, no_outline = TRUE ) btn_modificar( inputId, icon = NULL, size = "md", block = FALSE, no_outline = TRUE ) btn_cancelar( inputId, icon = NULL, size = "md", block = FALSE, no_outline = TRUE ) btn_eliminar( inputId, icon = NULL, size = "md", block = FALSE, no_outline = TRUE ) btn_minus(inputId, icon = NULL, size = "md", block = FALSE, no_outline = TRUE) btn_refresh( inputId, icon = NULL, size = "md", block = FALSE, no_outline = TRUE ) btn_expand(inputId, icon = NULL, size = "md", block = FALSE, no_outline = TRUE) btn_user_add( inputId, icon = NULL, size = "md", block = FALSE, no_outline = TRUE ) btn_user_remove( inputId, icon = NULL, size = "md", block = FALSE, no_outline = TRUE ) btn_user_edit( inputId, icon = NULL, size = "md", block = FALSE, no_outline = TRUE ) btn_editar(inputId, icon = NULL, size = "md", block = FALSE, no_outline = TRUE)
inputId |
The |
icon |
An optional icon to appear on the button. |
size |
Size of the button : |
block |
Logical, full width button. |
no_outline |
Logical, don't show outline when navigating with keyboard/interact using mouse or touch. |
HTML code for pretty action buttons
Clase R6 para manejar la base de datos
Clase R6 para manejar la base de datos
Una base de datos puede ejecutar y obtener querys
con
The DB connection
new()
Start the DB Manager
DBManager$new(use_tibble = TRUE)
use_tibble
Whether print the results of DbGetQuery() as a tibble or not. Default TRUE
db_execute_statement()
Analog to DBI::dbExecute()
DBManager$db_execute_statement(...)
...
Objects passed to glue::glue_sql() with the exception of the .con
argument.
db_get_query()
Analog to DBI::dbGetQuery()
DBManager$db_get_query(...)
...
Objects passed to glue::glue_sql() with the exception of the .con
argument.
db_make_query()
Construct the query to be passed to DBI::dbGetQuery()
. Useful for debugging and subquery construction.
DBManager$db_make_query(...)
...
Objects passed to glue::glue_sql() with the exception of the .con
argument.
clone()
The objects of this class are cloneable with this method.
DBManager$clone(deep = FALSE)
deep
Whether to make a deep clone.
Get Group data
Get Group data
R6 class that allows to get the Group information.
appReporteAvance::DBManager
-> appReporteAvance::User
-> appReporteAvance::Organisation
-> Group
group_selected
ID of the group to be used in the board, by default is the favorite group in group_users
groups
List containing the group affiliations of the User
group_users
List containing the user list of the group The info is shown following the User's group role.
group_units
List containing the group's measurement units. Older units are shown first.
appReporteAvance::DBManager$db_execute_statement()
appReporteAvance::DBManager$db_get_query()
appReporteAvance::DBManager$db_make_query()
appReporteAvance::User$user_add()
appReporteAvance::User$user_delete()
appReporteAvance::User$user_edit_names()
appReporteAvance::Organisation$fetch_orgs()
appReporteAvance::Organisation$org_add()
appReporteAvance::Organisation$org_delete()
appReporteAvance::Organisation$org_edit()
appReporteAvance::Organisation$org_finalize()
appReporteAvance::Organisation$org_initialize()
appReporteAvance::Organisation$org_user_add()
appReporteAvance::Organisation$org_user_delete()
appReporteAvance::Organisation$org_user_edit()
new()
Start a Group based on an user email
Group$new(email = Sys.getenv("REPORTES_EMAIL"))
email
The email the user started the session with.
group_initialize()
Initialize a group for a new user
Group$group_initialize(org_id)
org_id
The id of the organisation on which the statement will be executed
group_add()
Add a group to the database
Group$group_add(org_id, group_title, group_description)
org_id
The id of the organisation on which the statement will be executed
group_title
The new title of the group
group_description
The new description of the group
group_delete()
Remove a group from the database
Group$group_delete(group_id)
group_id
The id of the group on which the statement will be executed
group_edit()
Edit group metadata
Group$group_edit(group_id, group_title, group_description)
group_id
The id of the group on which the statement will be executed
group_title
The new title of the group
group_description
The new description of the group
group_user_add()
Add an user to a group
Group$group_user_add( group_id, user_id, user_color = "white", group_role = "user" )
group_id
The id of the group on which the statement will be executed
user_id
The id of the user on which the statement will be executed
user_color
The color of the user's cards
group_role
The role for the user in the group
group_user_delete()
Delete an user from a group
Group$group_user_delete(group_id, user_id)
group_id
The id of the group on which the statement will be executed
user_id
The id of the user on which the statement will be executed
group_user_edit()
Edit the role of a user inside a group and related information
Group$group_user_edit(group_id, user_id, user_color, group_role)
group_id
The id of the group on which the statement will be executed
user_id
The id of the user on which the statement will be executed
user_color
The color of the user's cards
group_role
The role for the user in the group
group_select()
Select a group for use in the board
Group$group_select(group_id)
group_id
The id of the group on which the statement will be executed
group_set_as_favorite()
Set selected group as favorite in the database
Group$group_set_as_favorite()
group_unit_add()
Add a measurement unit for a group
Group$group_unit_add( unit_title, unit_description = "", unit_type, unit_icon = "file" )
unit_title
The title of a group's measurement unit
unit_description
The description of a group's measurement unit
unit_type
The type of a group's measurement unit. One of ("report", "task")
unit_icon
The icon of a group's measurement unit. Should be the compatible with fontawesome::fa().
group_unit_edit()
Edit a measurement unit from a group
Group$group_unit_edit( unit_id, unit_title, unit_description, unit_type, unit_icon )
unit_id
The id of a group's measurement unit
unit_title
The title of a group's measurement unit
unit_description
The description of a group's measurement unit
unit_type
The type of a group's measurement unit. One of ("report", "task")
unit_icon
The icon of a group's measurement unit. Should be the compatible with fontawesome::fa().
group_unit_delete()
Delete a measurement unit from a group
Group$group_unit_delete(unit_id)
unit_id
The id of a group's measurement unit
clone()
The objects of this class are cloneable with this method.
Group$clone(deep = FALSE)
deep
Whether to make a deep clone.
Create a dependency for the icon picker element.
iconPicker_dep()
iconPicker_dep()
a html dependency named "iconPicker".
Create an icon picker element.
input_icon_picker( inputId, label, selected = NULL, btn_class = "btn-outline-secondary" )
input_icon_picker( inputId, label, selected = NULL, btn_class = "btn-outline-secondary" )
inputId |
chr: the ID of the input element. |
label |
chr: the label of the icon picker. |
selected |
chr: the name of the selected fontawesome icon. Must have the form 'fas fa-name'. |
btn_class |
chr: the class of the button element. |
a dropdown list with icons and a hidden input to hold their values.
Sweet alerts factory
mk_alert(title = "Title", type = NULL)
mk_alert(title = "Title", type = NULL)
title |
Title of the alert. |
type |
Type of the alert : info, success, warning or error. |
A function to generate a sweet alert with a particular title and type.
Pretty action buttons factory
mk_btn(color, label, style = "jelly")
mk_btn(color, label, style = "jelly")
color |
Color of the button : |
label |
The contents of the button, usually a text label. |
style |
Style of the button, to choose between |
A function to generate action buttons with a particular styling
Get Organisation data
Get Organisation data
R6 class that allows to get the Organisation information.
appReporteAvance::DBManager
-> appReporteAvance::User
-> Organisation
orgs
List containing the organisation affiliations of the User
org_users
List containing the user list of the organisation. The info is shown following the User's organisation role.
new()
Start an Organisation based on an user email
Organisation$new(email)
email
The email the user started the session with.
fetch_orgs()
Get the public data from the organisations the user is a member of
Organisation$fetch_orgs()
org_initialize()
Initialize an organisation for a new user
Organisation$org_initialize()
org_add()
Add a new organisation to the database
Organisation$org_add(org_title, org_description)
org_title
The new title of the organisation
org_description
The new description of the organisation
org_delete()
Delete an organisation from the database
Organisation$org_delete(org_id)
org_id
The id of the organisation on which the statement will be executed
org_edit()
Edit Organisation metadata
Organisation$org_edit(org_id, org_title, org_description)
org_id
The id of the organisation on which the statement will be executed
org_title
The new title of the organisation
org_description
The new description of the organisation
org_user_add()
Add an user to an organisation
Organisation$org_user_add(org_id, user_id, org_role)
org_id
The id of the organisation on which the statement will be executed
user_id
The id of the user on which the statement will be executed
org_role
The role for the user in the organisation
org_user_delete()
Delete an user from an organisation
Organisation$org_user_delete(org_id, user_id)
org_id
The id of the organisation on which the statement will be executed
user_id
The id of the user on which the statement will be executed
org_user_edit()
Edit the role of a user inside an organisation
Organisation$org_user_edit(org_id, user_id, org_role)
org_id
The id of the organisation on which the statement will be executed
user_id
The id of the user on which the statement will be executed
org_role
The role for the user in the organisation
org_finalize()
Remove the existence of an organisation
Organisation$org_finalize(org_id)
org_id
The id of the organisation on which the statement will be executed
clone()
The objects of this class are cloneable with this method.
Organisation$clone(deep = FALSE)
deep
Whether to make a deep clone.
This is a class definition for the Process class. It inherits from the Group class.
appReporteAvance::DBManager
-> appReporteAvance::User
-> appReporteAvance::Organisation
-> appReporteAvance::Group
-> Process
appReporteAvance::DBManager$db_execute_statement()
appReporteAvance::DBManager$db_get_query()
appReporteAvance::DBManager$db_make_query()
appReporteAvance::User$user_add()
appReporteAvance::User$user_delete()
appReporteAvance::User$user_edit_names()
appReporteAvance::Organisation$fetch_orgs()
appReporteAvance::Organisation$org_add()
appReporteAvance::Organisation$org_delete()
appReporteAvance::Organisation$org_edit()
appReporteAvance::Organisation$org_finalize()
appReporteAvance::Organisation$org_initialize()
appReporteAvance::Organisation$org_user_add()
appReporteAvance::Organisation$org_user_delete()
appReporteAvance::Organisation$org_user_edit()
appReporteAvance::Group$group_add()
appReporteAvance::Group$group_delete()
appReporteAvance::Group$group_edit()
appReporteAvance::Group$group_initialize()
appReporteAvance::Group$group_select()
appReporteAvance::Group$group_set_as_favorite()
appReporteAvance::Group$group_unit_add()
appReporteAvance::Group$group_unit_delete()
appReporteAvance::Group$group_unit_edit()
appReporteAvance::Group$group_user_add()
appReporteAvance::Group$group_user_delete()
appReporteAvance::Group$group_user_edit()
new()
This function initializes a Process object. It calls the initialize() method of the Group class to inherit its properties.
Process$new(email)
email
character string with user's email address
fetch_processes()
This function fetches all the processes that belong to a group using the group_selected property. It uses the glue and DBI libraries to execute an SQL query on the database connection stored in the self$con property. The results are transformed using purrr::pmap(list).
Process$fetch_processes()
a list of processed retrieved from the database
fetch_units()
This function fetches all the units that belong to a process identified by its ID using the glue and DBI libraries to execute an SQL query on the database connection stored in the self$con property. The results are transformed using purrr::pmap(list).
Process$fetch_units(process_id)
process_id
integer with the ID of the process to retrieve units from
a list of units retrieved from the database
process_add()
This function adds a process to the database using SQL queries executed through the glue and DBI libraries. It uses the ids library to generate random IDs for the new process and stores it in the ID column of the processes table.
Process$process_add(title, description = NA)
title
character string with the title of the process to add
description
character string with the description of the process (optional)
the ID of the newly added process
process_delete()
This function deletes a process from the database using an SQL query executed through the glue and DBI libraries.
Process$process_delete(process_id)
process_id
integer with the ID of the process to delete
process_edit()
This function edits the title and description of a process identified by its ID in the database. It uses SQL queries to update the title and description columns of the processes table executed through the glue and DBI libraries.
Process$process_edit(process_id, title, description)
process_id
integer with the ID of the process to edit
title
character string with the new title for the process
description
character string with the new description for the process
unit_add()
This function adds a measurement unit for a process identified by its ID to the database using SQL queries executed through the glue and DBI libraries. It uses the ids library to generate random IDs for the new unit and stores it in the ID column of the units table. It also checks if the unit type is either "report" or "task", and sets the "type" column of the units table accordingly.
Process$unit_add( process_id, unit_title, unit_description = "", unit_type, unit_icon = "file" )
process_id
integer with the ID of the process to add a unit to
unit_title
character string with the title of the unit to add
unit_description
character string with the description of the unit (optional, defaults to "")
unit_type
character string with the type of the unit, must be either "report" or "task"
unit_icon
character string with the icon for the unit (optional, defaults to "file")
the ID of the newly added unit
unit_edit()
This function edits the title, description, icon and/or type of a measurement unit identified by its ID in the database. It uses SQL queries to update the title, description, icon and/or type columns of the units table executed through the glue and DBI libraries. It also checks if the unit type is either "report" or "task", and sets the "type" column of the units table accordingly.
Process$unit_edit(unit_id, unit_title, unit_description, unit_type, unit_icon)
unit_id
integer with the ID of the unit to be edited
unit_title
character string with the new title for the unit
unit_description
character string with the new description for the unit
unit_type
character string with the new type of the unit, must be either "report" or "task"
unit_icon
character string with the new icon for the unit
unit_delete()
This function deletes a measurement unit identified by its ID from the database using an SQL query executed through the glue and DBI libraries.
Process$unit_delete(unit_id)
unit_id
integer with the ID of the unit to delete
clone()
The objects of this class are cloneable with this method.
Process$clone(deep = FALSE)
deep
Whether to make a deep clone.
Get the available solid style icons in the fontawesome package.
reportes_icon_names()
reportes_icon_names()
a character vector with the names of the available icons.
Run the Shiny Application
run_app( onStart = NULL, options = list(), enableBookmarking = NULL, uiPattern = "/", ... )
run_app( onStart = NULL, options = list(), enableBookmarking = NULL, uiPattern = "/", ... )
onStart |
A function that will be called before the app is actually run.
This is only needed for |
options |
Named options that should be passed to the |
enableBookmarking |
Can be one of |
uiPattern |
A regular expression that will be applied to each |
... |
arguments to pass to golem_opts.
See |
Get Group data
Get Group data
R6 class that allows to get the Group information.
appReporteAvance::DBManager
-> appReporteAvance::User
-> appReporteAvance::Organisation
-> appReporteAvance::Group
-> appReporteAvance::Process
-> Task
tasks
List containing the tasks an User can interact with
reports
List containing the reports an User can interact with
appReporteAvance::DBManager$db_execute_statement()
appReporteAvance::DBManager$db_get_query()
appReporteAvance::DBManager$db_make_query()
appReporteAvance::User$user_add()
appReporteAvance::User$user_delete()
appReporteAvance::User$user_edit_names()
appReporteAvance::Organisation$fetch_orgs()
appReporteAvance::Organisation$org_add()
appReporteAvance::Organisation$org_delete()
appReporteAvance::Organisation$org_edit()
appReporteAvance::Organisation$org_finalize()
appReporteAvance::Organisation$org_initialize()
appReporteAvance::Organisation$org_user_add()
appReporteAvance::Organisation$org_user_delete()
appReporteAvance::Organisation$org_user_edit()
appReporteAvance::Group$group_add()
appReporteAvance::Group$group_delete()
appReporteAvance::Group$group_edit()
appReporteAvance::Group$group_initialize()
appReporteAvance::Group$group_select()
appReporteAvance::Group$group_set_as_favorite()
appReporteAvance::Group$group_unit_add()
appReporteAvance::Group$group_unit_delete()
appReporteAvance::Group$group_unit_edit()
appReporteAvance::Group$group_user_add()
appReporteAvance::Group$group_user_delete()
appReporteAvance::Group$group_user_edit()
appReporteAvance::Process$fetch_processes()
appReporteAvance::Process$fetch_units()
appReporteAvance::Process$process_add()
appReporteAvance::Process$process_delete()
appReporteAvance::Process$process_edit()
appReporteAvance::Process$unit_add()
appReporteAvance::Process$unit_delete()
appReporteAvance::Process$unit_edit()
new()
Start a Task based on an user email
Task$new(email)
email
The email the user started the session with.
task_add()
Add a new task for an User and report it as initial progress.
Task$task_add( group_id, task_title, task_description, assignee, time_due, output_unit )
group_id
The id of the group on which the statement will be executed
task_title
Title for the task
task_description
Long description of the task
assignee
The id of the user responsible for the task
time_due
Deadline for the task completion. Datetime
output_unit
Unit of measurement of the task output
task_delete()
Delete an user task
Task$task_delete(task_id)
task_id
The id of the task on which the statement will be executed
task_edit()
Edit a task metadata
Task$task_edit( task_id, task_title = NULL, task_description = NULL, time_due = NULL )
task_id
The id of the task on which the statement will be executed
task_title
Title for the task
task_description
Long description of the task
time_due
Deadline for the task completion. Datetime
task_report_progress()
Report progress on an assigned task
Task$task_report_progress(task_id, status_current, details)
task_id
The id of the task on which the statement will be executed
status_current
Current status of the specified task
details
Explanation of the progress made
task_archive()
Archive a task
Task$task_archive(task_id)
task_id
The id of the task on which the statement will be executed
progress_add()
Insert progress info on some task
Task$progress_add(task_id, status, details)
task_id
The id of the task on which the statement will be executed
status
The status of the task once the new progress is added
details
Explanation of the progress made
task_get_history()
Get a task's progression history
Task$task_get_history(task_id)
task_id
The id of the task on which the statement will be executed
report_add()
Add a report and the quantities it has contributed in the specified units
Task$report_add(report_title, details, units, quantities)
report_title
The title of the report
details
Explanation of the progress made
units
Units of the report. Must have the same size as quantities.
quantities
Quantities of the report. Must have the same size as units.
report_delete()
Delete a report and its contributions from the database.
Task$report_delete(report_id)
report_id
The id of the report on which the statement will be executed
report_archive()
Archive a report and its contributions.
Task$report_archive(report_id)
report_id
The id of the report on which the statement will be executed
fetch_reports_to_download()
Get data for reporting
Task$fetch_reports_to_download(start_date, end_date)
start_date
Starting date of the report
end_date
Ending date of the report
clone()
The objects of this class are cloneable with this method.
Task$clone(deep = FALSE)
deep
Whether to make a deep clone.
Create a text area input with enhanced parameters
textAreaInputPro( inputId, label, value = "", width = NULL, height = NULL, cols = NULL, rows = NULL, placeholder = NULL, resize = NULL, maxlength = NULL, maxlengthCounter = FALSE, readonly = FALSE )
textAreaInputPro( inputId, label, value = "", width = NULL, height = NULL, cols = NULL, rows = NULL, placeholder = NULL, resize = NULL, maxlength = NULL, maxlengthCounter = FALSE, readonly = FALSE )
inputId |
The |
label |
Display label for the control, or |
value |
Initial value. |
width |
The width of the input, e.g. |
height |
The height of the input, e.g. |
cols |
Value of the visible character columns of the input, e.g. |
rows |
The value of the visible character rows of the input, e.g. |
placeholder |
A character string giving the user a hint as to what can be entered into the control. Internet Explorer 8 and 9 do not support this option. |
resize |
Which directions the textarea box can be resized. Can be one of
|
maxlength |
the maximum length of the input |
maxlengthCounter |
whether or not to show a character counter |
Returns a text area input with the specified parameters.
Create a text input with enhanced parameters
textInputPro( inputId, label, value = "", width = NULL, placeholder = NULL, maxlength = NULL, maxlengthCounter = FALSE, readonly = FALSE )
textInputPro( inputId, label, value = "", width = NULL, placeholder = NULL, maxlength = NULL, maxlengthCounter = FALSE, readonly = FALSE )
inputId |
The |
label |
Display label for the control, or |
value |
Initial value. |
width |
The width of the input, e.g. |
placeholder |
A character string giving the user a hint as to what can be entered into the control. Internet Explorer 8 and 9 do not support this option. |
maxlength |
the maximum length of the input |
maxlengthCounter |
whether or not to show a character counter |
Returns a text input with the specified parameters.
Get user information
Get user information
R6 class that allows to get the user information.
appReporteAvance::DBManager
-> User
user
List containing the user info.
new()
Start User
User$new(email)
email
The email the user started the session with.
user_add()
Add a new user to the database
User$user_add(name, last_name, email)
name
Name to be inserted as user metadata.
last_name
Last name to be inserted as user metadata.
email
The email the user started the session with.
user_delete()
Delete a user from the database
User$user_delete(user_id)
user_id
ID of the user to edit or delete.
user_edit_names()
Change the name and last name of the User
User$user_edit_names(user_id, name, last_name)
user_id
ID of the user to edit or delete.
name
Name to be inserted as user metadata.
last_name
Last name to be inserted as user metadata.
clone()
The objects of this class are cloneable with this method.
User$clone(deep = FALSE)
deep
Whether to make a deep clone.