KoolReport's Forum

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

Datetimepicker not display #531

Open Mazmur opened this topic on on Nov 24, 2018 - 18 comments

Mazmur commented on Nov 24, 2018

Dear Koolreprot,

I'm already use koolreport the last version with codeigniter.

With code below in *.view.php :

                        <div class="form-group text-center">
						<?php	  
								DateTimePicker::create(array(
									"name"=>"periodeDate",
									"maxDate"=>"@endDatePicker",
									"format"=>"MM/YYYY",
									"themeBase"=>"bs3",
								));
						?>
                        </div>

But in trial view, datetimepicker not display :

Give me advise pelase...

KoolReport commented on Nov 24, 2018

Could you please remove the maxDate and themeBase settings to see how

Mazmur commented on Nov 24, 2018

My code now below :

                       <div class="form-group text-center">
						<?php	  
								DateTimePicker::create(array(
									"name"=>"periodeDate",
									"format"=>"MM/YYYY"
								));
						?>
                    </div>

Output still not display

KoolReport commented on Nov 24, 2018

Could you please open the browser inspect to see if there is any error throwing?

Mazmur commented on Nov 25, 2018

jquery.min.js need to load that

KoolReport commented on Nov 25, 2018

On your report class please add:

use \koolreport\clients\jQuery;

Mazmur commented on Nov 25, 2018

already in class report, below :

    use \koolreport\codeigniter\Friendship; 	
use \koolreport\clients\Bootstrap;
__use \koolreport\clients\jQuery;__
use \koolreport\inputs\Bindable;
use \koolreport\inputs\POSTBinding;
 use \koolreport\export\Exportable;

But not work

KoolReport commented on Nov 25, 2018

The latest version of KoolReport is 3.1.0, there was a fix ralated to resourcemanager so please try to use the latest version if possible.

Mazmur commented on Nov 25, 2018

Yes, I am use KoolReport 3.1.0 Now

KoolReport commented on Nov 25, 2018

May I know your browser and os? If you try our examples, do they work?

Mazmur commented on Nov 25, 2018

My Os : WIN 10

Browser : Opera & Crhome

KoolReport commented on Nov 25, 2018

Have you try our examples running on your server? Do they work? Or having the same problems

KoolReport commented on Nov 25, 2018

Since you are using the codeigniter friendship, could you please check if koolreport is able to create folder {your_project}/assets/koolreport_assets folder to hold widgets resource. And does the report generate correctly url to files in that folders.

Mazmur commented on Nov 25, 2018

Yes, {my_project}/assets/koolreport_assets} folder already.

KoolReport commented on Nov 25, 2018

Great, so what is generate url for assets. You may open the report page and view source code, look for jquery.min.js and see it url. And check it with the folder above if you can find the jquery.min.js there

Mazmur commented on Nov 25, 2018

Source Code Below :

</script><script type='text/javascript'>KoolReport.load.resources({"js":["\/mgis\/assets\/koolreport_assets\/4091845012\/jquery.min.js",["\/mgis\/assets\/koolreport_assets\/1298514023\/js\/bootstrap.min.js"]],"css":["\/mgis\/assets\/koolreport_assets\/1298514023\/css\/bootstrap.min.css","\/mgis\/assets\/koolreport_assets\/1298514023\/css\/bootstrap-theme.min.css"]});</script>

And /mgis\/assets\/koolreport_assets\/4091845012\/jquery.min.js is exists :

What wrong ? because Datetimepicker still blank

KoolReport commented on Nov 25, 2018

So in the console, do you get any javascript error?

Mazmur commented on Nov 25, 2018

How to clear last jquery in KoolReport Load? Because in the Admin Dashboard I need jquery.js file.

KoolReport commented on Nov 25, 2018

I see, please remove the "use \koolreport\clients\jQuery";

The problem is you have jquery on your page already and by registering jquery again, it clear the extension wysihtml5() of you. So it cause error.

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
help needed

Inputs