KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Can not change the check box value #660

Closed Eugene opened this topic on on Feb 8, 2019 - 17 comments

Eugene commented on Feb 8, 2019

Hi,

I spent some time to find the reason but no success. I have checkbox list on my page with one checkbox and it works nicely until I try to set the defaults parameters

After that it blocks all changes - I can tot change the checkbox value - it returns to the default every time.

Code:

CheckBoxList::create(array(
                            "name" => "viewVsbox",
                            "data" => array(
                                "vs" => "2",
                            ),
                        ));

use \koolreport\inputs\Bindable;
    use \koolreport\inputs\POSTBinding;

    protected function defaultParamValues()
    {
        return array(
            "viewVs" => array('2'),
        );
    }

    protected function bindParamsToInputs()
    {
        return array(
            "viewVs" => "viewVsbox",
        );
    }

UPD I noticed if I set an empty array as a default value (means the checkbox is off) I can change the settings after that but if I set it like in my code I can not.

KoolReport commented on Feb 9, 2019

That's strange. Let me make a test and come back to you.

KoolReport commented on Feb 9, 2019

It is not strange anymore. I find the issue. Problem is that if there is no selection, data will not send to server, so server will use default values. I will tell the dev.team about this.

Eugene commented on Feb 9, 2019

:-) thanks.... next version or later? ;-)

KoolReport commented on Feb 11, 2019

Will be included in next version.

Eugene commented on Feb 11, 2019

thanks... looking forward

Eugene commented on Jun 29, 2019

It looks like this issue has not resolved...

Eugene commented on Jul 3, 2019

up...

i bit long for priority support as i think...

And also i have unanswered email please check

KoolReport commented on Jul 3, 2019

Sorry for the late reply, this issue has been solved in version 4. I have just tested again the case and all seems fine. You may have a look at "tests/_cases/inputs/checkboxlist" test case.

Eugene commented on Jul 3, 2019

It looks like another Safari's "feature". This issue still exist in this browser but in Chrome all is fine

KoolReport commented on Jul 4, 2019

Thanks for letting us know. I have told dev.team about this issue.

Eugene commented on Aug 12, 2019

Hi, have you found any solution for this Safari issue?

My boss uses Mac and Safari... so it is difficult to move him to another browser only because of some my reports... :-)

Eugene commented on Aug 13, 2019

Maybe it helps I get the following notification in Safari Console if i use checkboxes or radio buttons

KoolReport commented on Aug 14, 2019

Thank you very much!

KoolReport commented on Aug 14, 2019

Thank you very much! We will keep you udpate.

Eugene commented on Aug 23, 2019

Dear KoolReport do you have any news...?

I could understand that it is the Safari bug but all sites with checkboxes that I've ever visit work ok and only koolreport generated pages have this problem so I guess there is a not so difficult way to avoid and resolve this issue...

KoolReport commented on Sep 3, 2019

Karl is here, I've sent you a new version of inputs package. Please let me know if the issue is solved. Appreciate your feedback.

Eugene commented on Sep 3, 2019

Thank you Karl,

It looks like it works now :-) Thank you so much. You are the best!

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
bug
help needed
solved

Inputs