KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.

Can not change the check box value #660

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

Eugene commented on Feb 8

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

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

KoolReport commented on Feb 9

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

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

KoolReport commented on Feb 11

Will be included in next version.

Eugene commented on Feb 11

thanks... looking forward

Eugene commented on Jun 29

It looks like this issue has not resolved...

Eugene commented on Jul 3

up...

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

And also i have unanswered email please check

KoolReport commented on Jul 3

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

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

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

Eugene commented on Aug 12

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

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

KoolReport commented on Aug 14

Thank you very much!

KoolReport commented on Aug 14

Thank you very much! We will keep you udpate.

Eugene commented on Aug 23

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

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

Thank you Karl,

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

KoolReport Is Free and Open-Source!

KoolReport is a professional php reporting framework which saves you tons of time to construct dynamic data report & dashboard.

  • Connect to various datasources such as MySQL, SQL Server, MongoDB or even from CSV or Excel file.
  • Contain series of powerful built-in data processes for your data manipulation.
  • Generate stunning charts and graphs to help you communicate data insights to your audiences effectively.
  • Integrate seamlessly with any php frameworks such as Laravel, CodeIgniter, Symfony.
Download Now and register our tutorials to get started!

Download KoolReport
bug
help needed
solved

Inputs