Open Ryo-N7 opened 1 year ago
workflow:
mutate()
to modify field elements (change description, etc.)updateFormSchema()
Even slightly neater but with a little more code (TBD) would be to have a custom class extending data.frame so that it is recognized as a form schema and could contain some additional metadata in attributes. This could be fed it directly to updateFormSchema() without an additional conversion step.
@jamiewhths @akbertram Is this something we still want to do? This will create the table.
tibble(element = fmSchema$elements) %>% unnest_wider(element)
To go back to the form, we'd loop through the table records and call formFieldSchema() with the given parameters. Most checks are built in so it may not be too much work and probably we can call the arguments dynamically from the column names. Then we'd need to add a test or two.
Update form schema in
data.frame
format and pass into theupdateFormSchema()
to update it. Not as much a priority as previous points as people can just get better at manipulating list objects but could be a useful functionality for all users not just AV.