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

TOPIC: Generating "Score" From 100+ Question Survey

Re: Generating "Score" From 100+ Question Survey 2 years 6 months ago #74077

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
FreedomTrip-

You were very close. Your equations like:
sum(PF1.NAOK, PF2Abortion.NAOK)

should have been this, since you want the assessment value (not the A-C sub-question codes):
sum(PF1.valueNAOK, PF2valueNAOK)

When I make those changes, and un-hide the Equation questions (and switch to all-in-one mode), I see the values of the sums change dynamically as I'd expect. Except for finalScore.

Turns out, there are two issues that keep it from working properly:
(1) The process I used to extract the equation value and populate the database works fine for the default template. However, it does not work for the basic template. I'll open a bug report on that.

(2) The final equation isn't being processed due to a different bug, which I'll also report.

/Tom
Last Edit: 2 years 6 months ago by TMSWhite.
The administrator has disabled public write access.

Re: Generating "Score" From 100+ Question Survey 2 years 6 months ago #74082

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5324
  • Thank you received: 294
  • Karma: 248
TMSWhite wrote:
Turns out, there are two issues that keep it from working properly:
(1) The process I used to extract the equation value and populate the database works fine for the default template. However, it does not work for the basic template. I'll open a bug report on that.
Tom, is there a ticket for this?
If not, can you outline the problem in more detail? Because we have to be sure that EM works for all (also customized) templates. It should not depend on any elements of the templates, because e. g. some use a table based layout while others use DIVs.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: Generating "Score" From 100+ Question Survey 2 years 6 months ago #74098

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6276
  • Thank you received: 801
  • Karma: 240
Mazi wrote:
TMSWhite wrote:
Because we have to be sure that EM works for all (also customized) templates.
?

Are you sure ?
We already have some issue after put question.pstpl template ({QUESTION_SESSTIAL}).

1.92 are a major version, maybe there can be some customized template incompatibility ?

Denis
The administrator has disabled public write access.

Re: Generating "Score" From 100+ Question Survey 2 years 6 months ago #74120

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
Mazi-

I opened two bugs which I hope to tackle today:
(1) bugs.limesurvey.org/view.php?id=5804 - I plan to add something like an .em_equation class to {QUESTION_TEXT} so that I can more easily extract the value. That should ensure that it will work across templates.

(2) bugs.limesurvey.org/view.php?id=5803 - this is not a problem in 1.92 RC3 but relates to some optimizations I recently did. Also easy to fix.

/Tom
The administrator has disabled public write access.

Re: Generating "Score" From 100+ Question Survey 2 years 6 months ago #74121

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5324
  • Thank you received: 294
  • Karma: 248
Shnoulle wrote:
1.92 are a major version, maybe there can be some customized template incompatibility ?
I don't agree. I would say that ~70-80% of our users use a customized template or slightly edited shipped template. We have to focus on compatibility here.

For Limesurvey 2.0 one could say "this is a major release with a completely rewritten code base, customized templates have to be adjusted", though we should try to work around that.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: Generating "Score" From 100+ Question Survey 2 years 6 months ago #74148

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
OK, those two bugs have been fixed, so 1.92 RC4 will work properly for equations regardless of template type.
The administrator has disabled public write access.

Re: Generating "Score" From 100+ Question Survey 2 years 6 months ago #74149

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5324
  • Thank you received: 294
  • Karma: 248
TMSWhite wrote:
OK, those two bugs have been fixed, so 1.92 RC4 will work properly for equations regardless of template type.
wohoo!
:woohoo:

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: Generating "Score" From 100+ Question Survey 2 years 6 months ago #74178

Thanks so much for all the help, guys. Right now it looks like my quiz is functioning as it should be!
The administrator has disabled public write access.

Re: Generating "Score" From 100+ Question Survey 2 years 6 months ago #74225

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5324
  • Thank you received: 294
  • Karma: 248
FreedomTrip wrote:
Thanks so much for all the help, guys. Right now it looks like my quiz is functioning as it should be!
Thanks

You're welcome :-)

If our hints have been helpful and you enjoy limesurvey please consider a donation to the team .
We do all this in our free time and you don't have to pay a penny for this software.

Without your help we can't keep this project alive.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
The following user(s) said Thank You: itsme
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.221 seconds
Donation Image