ctsit / search_and_populate_data_from_another_project

REDCap Module to search another project for data to populate data into the current form
Other
5 stars 2 forks source link

Source codebook link does not work until after configuring the module #5

Closed ChemiKyle closed 3 years ago

ChemiKyle commented 4 years ago

The "Source codebook" and "Target codebook" depend on project IDs being delivered from the backend on page load, during the initial setup, there is no source project set, breaking the link.

https://github.com/ctsit/search_and_populate_data_from_another_project/blob/master/ExternalModule.php#L12-L15

The Source codebook link could dynamically set the PID from the target_pid in the configuration menu.

The source_codebook button is set here: https://github.com/ctsit/search_and_populate_data_from_another_project/blob/802b637fc6fc543904f42ed26fa9611a7f5073d0/js/config_menu.js#L3

ChemiKyle commented 3 years ago

Addressed in PR #19