Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: How to insert other data to table lime_survey_$surveyid when submit survey?

How to insert other data to table lime_survey_$surveyid when submit survey? 1 Jahr 10 Monate her #89401

  • vcongpham
  • vcongphams Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 3
  • Karma: 0
Hello everyone!

I inserted a new field to a table lime_survey_$surveyid (Example: insert field 'uid' after column 'id' in table lime_survey_123456).

But i can't insert value data to 'uid' after submit survey.

I want to find line code insert to change it. But i did not find it.

Please tell me where function insert data to table lime_survey_$surveyid is.

Thanks for help!
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: How to insert other data to table lime_survey_$surveyid when submit survey? 1 Jahr 10 Monate her #89431

  • helper
  • helpers Avatar
  • OFFLINE
  • Expert Lime
  • Beiträge: 126
  • Dank erhalten: 18
  • Karma: 0
I trust that you mean "update" rather than "insert" at the end of the survey. To that end, we have several things that we do at the end of a survey and call our external classes in the .../application/helpers/SurveyRuntimeHelper.php (at about line 429 or so of Version 2.00+ Build 121127).

CAVEAT - every time that you update LimeSurvey you must put your code back to the file.

My hook:


//Send notifications

sendSubmitNotifications($surveyid);

/** INSERT FOR UNC POST PROCESSING HOOK ****************************************/
Yii::import('application.unc.WebCIS_ProcessingService');
$webCIS = new WebCIS_ProcessingService();
$webCIS->process($surveyid);

/** END INSERT FOR UNC POST PROCESSING HOOK ************************************/

$content = '';

Where our custom class is WebCIS_ProcessingService located in .../application/unc/ folder
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: vcongpham

Re: How to insert other data to table lime_survey_$surveyid when submit survey? 1 Jahr 10 Monate her #89433

  • vcongpham
  • vcongphams Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 3
  • Karma: 0
Thanks for reply me.
I meant that. I want to save userid of user into each lime_survey_$surveyid table. First, i add a new column into lime_survey_$surveyid table (i have done).
Second, i want insert userid (for user logined) to above table, ( i failded).
Please help me!
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: How to insert other data to table lime_survey_$surveyid when submit survey? 1 Jahr 10 Monate her #89434

  • vcongpham
  • vcongphams Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 3
  • Karma: 0
Note: I am using limesurvey 1.92
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.117 Sekunden
Donation Image