This topic is locked
[SOLVED]

 Prompt for inputs to create a chart

9/26/2018 11:12:22 AM
PHPRunner General questions
gehrenfeld author

I want to create a chart with the fields meter_date and readings between a startdate and enddate , but want the user to input a startdate and enddate.
Not sure how to setup the Create Chart to do that.
Thanks

W
WilliamBDevClub member 9/27/2018

Why not direct users to the search page for the chart and then they can select the dates there. You can modify the search page to fit your needs removing all but the date field.

gehrenfeld author 9/27/2018



Why not direct users to the search page for the chart and then they can select the dates there. You can modify the search page to fit your needs removing all but the date field.



the dates are datetime 2018-07-28 18:25:00 so the search function does not work.

Sergey Kornilov admin 9/28/2018

Search function does work with dates. Do not make user enter dates manually, let them use datepickers.

gehrenfeld author 9/28/2018



Search function does work with dates. Do not make user enter dates manually, let them use datepickers.


That worked!!!!
Is there anyway that when I click on the Chart that I can have it wait for the dates before it loads. Now when I click on the chart it starts the chart and I have to wait for it to chart the entire database.
Thanks for helping me on this.