-
Notifications
You must be signed in to change notification settings - Fork 105
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
New Dialog: Import from Open App Builder #9099
Comments
@lilyclements exciting. I have a query on terminology in relation to the filter part. That's because we do a lot of filtering within a data frame, to choose the rows. Is your's the same, so I could be saying filter on a Variable called Country, and choosing a value called Kenya? |
@rdstern yes it would be like that, if a variable called country exists in the data! “app_deployment_name” is the name of the app to filter to and so this would be what is usually used to select which app you’re interested in - PLH Tanzania (plh_tz), maths app, etc |
When you run the sub-dialog it sends the following script to R
How can I save it to the main dialog under |
@Vitalis95 the Regarding You can examine the following R Functions to have an idea of working with databases. I can also send you the connection details to our sample climsoft database so that you can look at the scripts that the dialog produces as well.
|
@Patowhiz thanks for outlining this. So @Vitalis95 the code run on the main dialog is:
Then, if "filter" is not checked, then we run:
If filter is checked, then we run:
I have checked this works as intended in R-Instat using the script window and it seems to work well! Thanks. |
@lilyclements with Also the database names |
Can we a new dialog "Import from OpenAppBuilder" to import our app data. This should be pretty straight forward, I think. This is related to the PLH work and deliverables we have outlined.
I'm thinking it looks like this:
Establish Connection Option:
RMySQL::MySQL()
, but have in the drop-down the option ofRPostgres::Postgres()
plh_con
, i.e.,plh_con <- [code_run_in_sub_dialog]
Main Dialog Code:
filter
app_deployment_name
filter_variable
filter_variable = "app_deployment_name"
plh_za, wash, plh_tz, plh_global, early_family_math, ae_soils, plh_teens_tz, pfr, virtual_maths_camp, ae_app
filter_variable_value
filter_variable_value= "virtual_maths_camp"
dlgClimSoft
The code run on the main dialog is from the
openappr
R package.So, if "filter" is not checked, then we run:
If filter is checked, then we run:
@Vitalis95 I wonder if you would be okay to take this up? :)
The text was updated successfully, but these errors were encountered: