KoolReport's Forum

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

DateTimePicker - can't display calendar #405

Open Anita opened this topic on on Aug 2, 2018 - 2 comments

Anita commented on Aug 2, 2018

Hi,

I have an issue with DateTimePicker. It doesn't display the calendar. If I test DateRangePicker, no problem to display the calendar, however I can't display the calendar icon.

<?php
use \koolreport\widgets\koolphp\Table;
use \koolreport\inputs\TextBox;
use \koolreport\inputs\DateTimePicker;
use \koolreport\inputs\DateRangePicker;
?>
...................................................

<h4>Afficher les collaborateurs</h4>
        <?php
        Table::create([
            "dataStore"=>$this->dataStore("result_view")
        ]);
        ?>
        <div>
        <form method="post">
            <label>Choix de la date</label>
              <?php
	          DateTimePicker::create(array(
	   		 "name"=>"input_start_date",
			));    
			?>
			<?php
			DateRangePicker::create(array(
			    "name"=>"dateRange"
			));
			?>
			<label>Nom de l'équipe</label>
            <?php TextBox::create([
              "name"=>"customerInputEntity"
            ]);

	    ?>  
     
            <button>Submit</button>
        </form>
    </div>

Would you have any hints why it doesn't work ?

KoolReport commented on Aug 3, 2018

Does your report has jQuery or Bootstrap turn on. Please set this on your report:

class MyReport extends \koolreport\KoolReport
{
    use \koolreport\clients\jQuery;
    ...
}

If you use Bootstrap then you do not need jQuery since jQuery will be included.

Anita commented on Aug 3, 2018

No, my report didn't have that.

Adding "use \koolreport\clients\jQuery" didn't fix the problem but indeed after adding "use \koolreport\clients\Bootstrap" it's working. thanks a lot !

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

Inputs