KoolReport's Forum

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

RemoveDuplicate does not seem to work for me #541

Open Alex Chartier opened this topic on on Dec 2, 2018 - 5 comments

Alex Chartier commented on Dec 2, 2018

I think I have it right but it isn't removing the duplicate values. Below is my table create code:

    Table::create(array(
        "dataStore"=>$this->dataStore('choices'),
        "columns"=>array(
            "Option"=>array(
                "label"=>"Option",
		        "cssStyle"=>array(
		        	"td"=>"padding-top:4px;padding-bottom:4px;",
		        )
            ),
            "Selection"=>array(
                "label"=>"Selection",
		        "cssStyle"=>array(
		        	"td"=>"padding-top:4px;padding-bottom:4px;",
		        )
            ),
            "choice"=>array(
                "label"=>"Count",
		        "cssStyle"=>array(
		        	"td"=>"padding-top:4px;padding-bottom:4px;",
		        )
            ),
        ),
        "removeDuplicate" => array("Option"),
        "cssClass"=>array(
            "table"=>"table table-bordered table-striped",
        ),
    ));

And this is what I see on my report:

KoolReport commented on Dec 2, 2018

Could you please check if there is any javascript error? for example table.js is not loaded.

Alex Chartier commented on Dec 2, 2018

I am getting a typeerror that $ is not defined.

Alex Chartier commented on Dec 2, 2018

Adding the use for jQuery fixed it. Just need a nudge in the right direction. Thanks.

KoolReport commented on Dec 2, 2018

Great! By the way, what browser do you use?

Alex Chartier commented on Dec 2, 2018

Chrome mostly.

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
solved

None