This topic is locked
[SOLVED]

 Filling advanced search form with default values

10/27/2015 2:28:52 PM
PHPRunner General questions
J
jdu001 author

PHPRunner 8.0

I want to initial fill a search form with a atartdate and enddate to report the results of the last 3 months.

I defined a search-form with a date and the only search option is between.

With JavaScript I can fill the startdate, but I cann't fill the enddate by default.
Jo van Duin

Sergey Kornilov admin 10/27/2015

I'm not sure why would filling end date using Javascript will be any different from filling a start date. Any specific error message?

J
jdu001 author 10/29/2015



I'm not sure why would filling end date using Javascript will be any different from filling a start date. Any specific error message?


The searchoption for SearchDate is Between.

I use the construction:

var ctrl = Runner.getControl(pageid, 'SearchDate');

value = new Date();

ctrl.setValue(value);
Only the first date (the value of SearchDate_Editcontol) is filled.

The second date (the value of SearchDate_Editcontol1) connot be filled.

J
jdu001 author 10/29/2015