HowTo Filter the Columns of an Array (Numbers)

More
1 year 1 month ago #157871 by DenisChenu
DenisChenu replied the topic: HowTo Filter the Columns of an Array (Numbers)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: socius

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago #158042 by socius
socius replied the topic: HowTo Filter the Columns of an Array (Numbers)
Hi,

I just compared the html and css of the example on demonstration.sondages.pro/655577.html and the result on my installation.

I found a difference in the hideemptycolumn.css from the download from extensions.sondages.pro/questions-updati...column/download.html vs. the css used in demonstration.sondages.pro/655577.html.

The "missing" parts (s. code below) are missing in the former, but are contained in the new demonstration. When I add these two lines, it works exactly like the example in demonstration.sondages.pro/655577.html.
td.hideEmptyColumn-hiddencolumn,th.hideEmptyColumn-hiddencolumn{
overflow:hidden !important;
border-spacing:0 !important;
border-collapse:collapse !important;
padding:0 !important;
width: 0 !important;  /*missing*/
min-width: 0 !important; /*missing*/
}
table.hideEmptyColumn-widthhiddencolumn{
border-collapse:collapse !important;
}


Now it does exactly what it should do - thanks to @DenisChenu!
Best, G

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago #158051 by DenisChenu
DenisChenu replied the topic: HowTo Filter the Columns of an Array (Numbers)
Hi,

The git repo seems uptodate : framagit.org/SondagePro-LimeSurvey-plugi.../hideemptycolumn.css

Maybe i didn't add it in the zip generation … thanks for report.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago #158052 by DenisChenu
DenisChenu replied the topic: HowTo Filter the Columns of an Array (Numbers)
Just download extensions.sondages.pro/IMG/auto/hideEmptyColumn.zip : css seems up to date for me. Maybe assets generation broken for you ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago #158070 by socius
socius replied the topic: HowTo Filter the Columns of an Array (Numbers)
The downloaded hideemptycolumn.css from extensions.sondages.pro/IMG/auto/hideEmptyColumn.zip does not contain the two mentioned lines that are contained in the example that seem to make it work for me.


The css from extensions.sondages.pro/IMG/auto/hideEmptyColumn.zip :
td.hideEmptyColumn-hiddencolumn,th.hideEmptyColumn-hiddencolumn{
overflow:hidden !important;
border-spacing:0 !important;
border-collapse:collapse !important;
padding:0 !important;
}
table.hideEmptyColumn-widthhiddencolumn{
border-collapse:collapse !important;
}


vs. the css from the example on demonstration.sondages.pro/655577 (css: demonstration.sondages.pro/tmp/assets/59.../hideemptycolumn.css ):
td.hideEmptyColumn-hiddencolumn,th.hideEmptyColumn-hiddencolumn{
overflow:hidden !important;
border-spacing:0 !important;
border-collapse:collapse !important;
padding:0 !important;
width: 0 !important;
min-width: 0 !important;
}
table.hideEmptyColumn-widthhiddencolumn{
border-collapse:collapse !important;
}

Is this difference critical or should it work with the version w/o the two lines (width, min-width)?

Best, G
The following user(s) said Thank You: DenisChenu

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago #158083 by tpartner
tpartner replied the topic: HowTo Filter the Columns of an Array (Numbers)
I would definitely include the width and min-width rules.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago #158111 by DenisChenu
DenisChenu replied the topic: HowTo Filter the Columns of an Array (Numbers)

socius wrote: The downloaded hideemptycolumn.css from extensions.sondages.pro/IMG/auto/hideEmptyColumn.zip does not contain the two mentioned lines that are contained in the example that seem to make it work for me.…

Good catch, thank you

Fixed :
framagit.org/SondagePro-LimeSurvey-plugi...72bdec322725b68fd40d
github.com/SondagesPro/LS-hideEmptyColum...72bdec322725b68fd40d

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
1 year 2 weeks ago #159101 by Joffm
Joffm replied the topic: HowTo Filter the Columns of an Array (Numbers)


Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in or Create an account to join the conversation.

More
2 months 3 weeks ago - 2 months 3 weeks ago #171510 by ArriFerrari
ArriFerrari replied the topic: HowTo Filter the Columns of an Array (Numbers)
I found that the plugin also breaks if the column filter multiple choice question was marked "Mandatory"
In case anyone else is trying to get this working, make sure your multiple choice column filter question is "Optional"
You can work around this by setting the minimum number of responses to 1 for multiple choice questions.

It's also important to note that the column filtering question must be in a different question group that comes before the array you want to filter. It will not work if you put the filtering question in the same question group as the table.

I'm working in Limesurvey 2.73.1
Last Edit: 2 months 3 weeks ago by ArriFerrari. Reason: Further explanation/findings

Please Log in or Create an account to join the conversation.

More
2 months 3 weeks ago #171512 by DenisChenu
DenisChenu replied the topic: HowTo Filter the Columns of an Array (Numbers)

ArriFerrari wrote: I found that the plugin also breaks if the column filter multiple choice question was marked "Mandatory"…

Yes, it's only a javascript solution … more a hack currently.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: ArriFerrari

Please Log in or Create an account to join the conversation.

More
2 months 3 weeks ago #171531 by ArriFerrari
ArriFerrari replied the topic: HowTo Filter the Columns of an Array (Numbers)
It’s really quite good! As long as everyone is aware of the limitations, your plugin solution helps a lot

Please Log in or Create an account to join the conversation.

More
2 months 3 weeks ago #171532 by Joffm
Joffm replied the topic: HowTo Filter the Columns of an Array (Numbers)
Hi, ArriFerrari,

thanks for your summary.

This "you have to know" was also discussed here:
https://www.limesurvey.org/forum/development/115929-found-a-bug-in-the-matrix-filter

Best regards
Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!