Welcome, Guest
Username: Password:
  • Page:
  • 1
  • 2

TOPIC: Array_filter in Ranking has stopped working

Array_filter in Ranking has stopped working 2 years 8 months ago #99485

  • carmcomp
  • carmcomp's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 9
  • Karma: 0
Within a question group, there is a Ranking question type that has an array_filter based on 2 previous questions, one multiple choice and one array(texts). The filter was working perfectly when these were the only questions in the group. I have since added additional questions to the group and re-sequenced the questions and now the filter is no longer working. Is there a special consideration that I'm missing? Version 2.00 plus (build130317). Thank you.
The administrator has disabled public write access.

Array_filter in Ranking has stopped working 2 years 8 months ago #99533

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5790
  • Thank you received: 1260
  • Karma: 514
Are the filtering questions placed before the filtered one. Are all question codes unique?
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Array_filter in Ranking has stopped working 2 years 8 months ago #99583

  • carmcomp
  • carmcomp's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 9
  • Karma: 0
Thank you for your quick response. I was able to resolve the issue. I removed all the questions from the group that I had added since the filter stopped working. The filter was again working perfectly. Then I one-by-one added the questions back into the group until I found the one that caused it to break. It turned out that the question that caused it to break had a bad validation equation. This question was unrelated to the question with the array_filter in place. Once I removed the validation equation, everything worked well. I'm not sure I understand why that would have caused the problem and if someone has time, I would like to have an explanation so as to avoid future occurences. Thanks again.
The administrator has disabled public write access.

Array_filter in Ranking has stopped working 2 years 8 months ago #99643

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5790
  • Thank you received: 1260
  • Karma: 514
The bad validation equation was probably throwing a fatal JavaScript error preventing any subsequent script (the filtering) on the page from running.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Array_filter in Ranking has stopped working 2 years 6 months ago #100759

  • carmcomp
  • carmcomp's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 9
  • Karma: 0
We are continuing to have issues with the array_filter on the ranking question. We have added relevance equations to the two questions being used in the filter as well as the ranking question. When the relevance is in place, the array_filter no longer works. If we remove the relevance, the array_filter does its job populates the ranking as expected. Are there any suggested fixes or workarounds to this problem?

Thank you.
The administrator has disabled public write access.

Array_filter in Ranking has stopped working 2 years 6 months ago #100760

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5790
  • Thank you received: 1260
  • Karma: 514
Can you attach a test survey?
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Array_filter in Ranking has stopped working 2 years 6 months ago #100762

  • carmcomp
  • carmcomp's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 9
  • Karma: 0
The group the question is in is MARC Records. The question code of the ranking question is MR15_3, being filtered with MR15_2 and MR15_A.
The administrator has disabled public write access.

Array_filter in Ranking has stopped working 2 years 6 months ago #100766

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5790
  • Thank you received: 1260
  • Karma: 514
Can you attach a test survey?
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Array_filter in Ranking has stopped working 2 years 6 months ago #100767

  • carmcomp
  • carmcomp's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 9
  • Karma: 0
Sorry - I attempted to attach the test survey to my last message, but it was too large. I exported the group and attached it here. Hopefully that will be sufficient?
Attachments:
The administrator has disabled public write access.

Array_filter in Ranking has stopped working 2 years 6 months ago #100774

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5790
  • Thank you received: 1260
  • Karma: 514
Hmm...I am not able to import that group into my 2.0installation or at the limesurvey.org Demo installation.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Array_filter in Ranking has stopped working 2 years 6 months ago #100779

  • carmcomp
  • carmcomp's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 9
  • Karma: 0
I imported the group into a smaller test survey we have on our system and am now attaching that entire survey structure here to see if that works.
Attachments:
The administrator has disabled public write access.

Array_filter in Ranking has stopped working 2 years 6 months ago #100805

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5790
  • Thank you received: 1260
  • Karma: 514
I get a server error when trying to import that as well - Property "Surveys_languagesettings.surveyls_display" is not defined.

Can someone else try this to make sure I'm not losing my mind?
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Array_filter in Ranking has stopped working 2 years 6 months ago #100810

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1678
  • Thank you received: 418
  • Karma: 106
Hello,
same error with 2.00 instal and this one with 1.92:

Notice: Undefined index: help in /Applications/MAMP/htdocs/LS192/admin/import_functions.php on line 1317
Error: Failed to insert data
INSERT INTO lime_answers ( QID, CODE, ANSWER, assessment_VALUE, SORTORDER, LANGUAGE, SCALE_ID ) VALUES ( 1001, 'M15210', 'Date', 1, 10, 'en', 0 )
Data too long for column 'code' at row 1
BenoƮt

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
All LS releases => bit.ly/1VMuTDu | 2.06lts => bit.ly/1Qv44A1
Demo surveys => bit.ly/20NW9V8 (already included in /docs/demosurveys)
The administrator has disabled public write access.

Array_filter in Ranking has stopped working 2 years 6 months ago #100817

  • carmcomp
  • carmcomp's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 9
  • Karma: 0
My apologies. Our survey was built on a custom template and there were other customizations made to the hosting environment and I'm wondering if that is what is causing the import errors. I have recreated the scenario outside of our environment using my desktop version of Limesurvey and have attached it here. Hopefully this can be imported successfully.

An update to our situation...we inadvertently discovered that when the relevance is in place, after typing something in the array text box it is required to tab out of the field in order for it to show up in the ranking question below. Prior to the relevance being added on the 3 questions, as soon as you started typing into the text array, it would begin showing up in the ranking question below. Until we realized that tabbing out populated ranking, it appeared the array filter was not working. The group is MARC Records 2. You will see 4 questions. When the relevance equation is removed from the last three questions, the array_filter works as soon as you begin typing into the array text boxes (2 text arrays that feed the ranking question), however with the relevance in place, the array_filter stops working unless tab is used.

Is this something can be modified (the tab requirement), or should we just explain it in the Help section of this question that tabbing out is required?

Thanks so much.
Attachments:
The administrator has disabled public write access.

Array_filter in Ranking has stopped working 2 years 6 months ago #100818

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5790
  • Thank you received: 1260
  • Karma: 514
Okay, that did import successfully.

The "MARC Records 2" group seems to be working fine for me. The relevance on MR15_2, MR15_A and MR15_3 works on key-up, as does the filtering on MR15_3. I didn't have to tab out of the text inputs.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.195 seconds