Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a dropdown for selecting mapping files #713

Open
raheems opened this issue May 2, 2023 · 2 comments
Open

Adding a dropdown for selecting mapping files #713

raheems opened this issue May 2, 2023 · 2 comments

Comments

@raheems
Copy link

raheems commented May 2, 2023

Would you provide some guidance on implemeting the following:

  • Immediately after the Data Upload option, there will be a list of pre-uploaded mapping yaml files so that the user just selects the yaml and run the app.

To elaborate, suppose there are two mapping config files and depending on the source data, the uses would select the one that is appropriate for the input data.

I see that the mapping paramter in the safetyGraphicsApp() function but wondering where should the input-file-selector should be placed.

Thank you

@jwildfire
Copy link
Contributor

Hi @raheems - there are a few ways you could approach this:

  • Create a "wrapper app" that lets the user load a mapping file before calling the safetyGraphics with a custom mapping. See these lines in safetyGraphicsInit().
  • You could also create custom metadata files with new mapping values built in and then the app would auto-select the best match. You'd just need to add your new default values in columns to the metadata saved here - similar to standard_adam and standard_sdtm in the current files

@raheems
Copy link
Author

raheems commented May 8, 2023

I was trying to find a way to pass user-selectable parameters when deploying the app using the following line:

safetyGraphics::safetyGraphicsApp(runNow = FALSE) # add parameters here (if any)

Since shiny app cannot be called from another shinyApp, how to include selectInput style parameters that users can select and click a button that calls

safetyGraphics::safetyGraphicsApp(selected_parameter, runNow = FALSE)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants