Git Product home page Git Product logo

redcap-repeat-survey-link's Introduction

Hi there, I am Ekin ๐Ÿ‘‹

โšก Iโ€™m a passionate Software Engineer with a modern full stack.
๐Ÿ”ญ Currently my work is focused on REDCap Modules, Tools and EM Framework improvements.

redcap-repeat-survey-link's People

Contributors

tertek avatar

Stargazers

 avatar

Watchers

 avatar  avatar

redcap-repeat-survey-link's Issues

REDCap External Module Hook Exception - repeat_survey_link (error message)

Hello,

Thank you so much for helping me troubleshoot. I've attached a word document that contains the error message, along with the other information you requested and screenshots. I believe I set everything up correctly, but please let me know if I missed or misinterpreted anything. I also want to confirm the functionality of this external module. When I am able to get it working correctly, I should be able to provide users with a repeating survey link that will allow users to complete a public survey multiple times, generating a new instance for that record, correct?

Thank you again for your assistance and please let me know if you need anything else from me to help troubleshoot. Also let me know if there is something that my local IT needs to do from their end to get this external module to work correctly.

Thank you,
Amber

repeat survey error message.docx

'Prepared statement contains too many placeholders'

On a production environment with 60k+ records we encountered the following Exception after saving project setting configuration:

Exception: An error occurred while running an External Module query: 'Statement preparation failed'. The error from the database was: 'Prepared statement contains too many placeholders'

Reason:
The MySQL / Maria DB placeholder limit per query has been reached, see here and here.

Solution:
Chunk into separate queries not reaching the limit.

redcap_module_save_configuration does not support projects with multiple events

The 'repeat_survey_link' module threw the following exception when calling the hook method 'redcap_module_save_configuration':

Exception: Multiple events found for project 119 in /opt/rh/httpd24/root/var/www/html/redcap/redcap_v10.6.4/ExternalModules/classes/framework/Project.php:64
Stack trace:
#0 /opt/rh/httpd24/root/var/www/html/redcap/redcap_v10.6.4/ExternalModules/classes/framework/Framework.php(347): ExternalModules\Project->getEventId()
#1 /opt/rh/httpd24/root/var/www/html/redcap/redcap_v10.6.4/ExternalModules/classes/framework/Framework.php(322): ExternalModules\Framework->getEventId(NULL)
#2 /opt/rh/httpd24/root/var/www/html/redcap/modules/repeat_survey_link_v1.0.2/repeatSurveyLink.php(119): ExternalModules\Framework->getRepeatingForms(NULL, NULL)
#3 /opt/rh/httpd24/root/var/www/html/redcap/modules/repeat_survey_link_v1.0.2/repeatSurveyLink.php(81): STPH\repeatSurveyLink\repeatSurveyLink->setDefinitions()
#4 /opt/rh/httpd24/root/var/www/html/redcap/modules/repeat_survey_link_v1.0.2/repeatSurveyLink.php(60): STPH\repeatSurveyLink\repeatSurveyLink->init_rsl('119')
#5 [internal function]: STPH\repeatSurveyLink\repeatSurveyLink->redcap_module_save_configuration('119')
#6 /opt/rh/httpd24/root/var/www/html/redcap/redcap_v10.6.4/ExternalModules/classes/ExternalModules.php(2766): call_user_func_array(Array, Array)
#7 /opt/rh/httpd24/root/var/www/html/redcap/redcap_v10.6.4/ExternalModules/classes/ExternalModules.php(2906): ExternalModules\ExternalModules::startHook('repeat_survey_l...', 'v1.0.2', Array)
#8 /opt/rh/httpd24/root/var/www/html/redcap/redcap_v10.6.4/ExternalModules/classes/ExternalModules.php(2920): ExternalModules\ExternalModules::ExternalModules{closure}('repeat_survey_l...', 'v1.0.2')
#9 /opt/rh/httpd24/root/var/www/html/redcap/redcap_v10.6.4/ExternalModules/manager/ajax/save-settings.php(40): ExternalModules\ExternalModules::callHook('module_save_con...', Array, 'repeat_survey_l...')
#10 {main}

Module redundant in REDCap version 12.5.0

New Smart Variable: [new-instance]
This new Smart Variable can be appended to [survey-link] or [form-link] to create a link to a new, not-yet-created repeating instance for the current record. For example, you can create a recurring alert that contains [survey-url:repeating_survey][new-instance] in the text, in which it will send the recipient a survey link for creating a new instance of a repeating survey.

The Project Id cannot be null!

When saving the module configuration from system settings an exception is thrown:

Exception: The Project Id cannot be null! in /opt/rh/httpd24/root/var/www/html/redcap/redcap_v10.6.4/ExternalModules/classes/ExternalModules.php:2170

Reason:
Call to hook 'redcap_module_save_configuration' is not filtered for project / system level page.

Solution:
Set $project_id default to null and init_rsl only if not null.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.