KoolReport's Forum

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

KoolReport.js:106:40 TypeError: $(...).data(...) is undefined error on select change #2793

Open Andrew Guattery opened this topic on on Aug 14 - 1 comments

Andrew Guattery commented on Aug 14

I have a report that is making use of subreports. one the first subreport are several <select> and <datetimepickers> which show one after the other as a choice is made in each. When all are set then a second subreport is generated. I am having an issue on change of this select:

Select::create(array(
            "name"=>"payperiod",
            "dataStore"=>$this->dataStore("payperiods"),
            "defaultOption"=>array("--"=>null),
            "dataBind"=>array(
                "text"=>"PER_TXT",
                "value"=>"PER_VAL",
            ),
            "clientEvents"=>array(
                "change"=>"function(){
               if(reportOpen == 1){  subReport.update('Payroll',{ }); reportOpen = 0; $('#runreport').attr('disabled',false);}
                var dts = $('#payperiod').val().split('|');
                    subReport.update('StoreSelecting',{
                        'payperiod':$('#payperiod').val(),
                        'startdt':dts[0].split('-').join('/'),
                        'enddt':dts[1].split('-').join('/'),
                        'store':$('#store').val(),
                    });                     
                }",
            ),
            "attributes"=>array(
                "class"=>"form-control",
            )
        ));  
        

It works as expected but in the browser console I am getting the error listed in the subject of this post. I cannot for the life of me figure out what this error is telling me as everything seems to be working fine. I do not see any duplicate scripts loaded. Also I am using the amazing theme. any help would be greatly appreciated!

KoolReport commented on Aug 14

I have reported to dev.team if they can find root cause.

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
None yet

None