hello
I have the following table
wishedates (desired_start_date DATE, desired_end_date DATE suggestion DATE)
The field suggestion is using lookup table test_find with "Link field" d (Date). This is showing me all the available dates to boom such 02.02.2015, 03.02.2015,...
Now: When I want to add a record intom my wishdates table eq. wishdatesadd.php then I have the following three fields:
desired_start_date (Date Picker)
desired_end_date (Date Picker)
suggestions (Drop Down with dates like, 02.02.2015,03.02.2015....)
When I select the date 02.02.2015 for desired_start_date and for desired_end_date then It should show me in field suggestions only the date (02.02.2015)
There for I am entering the following code into file "Filter" under Lookup Table with expectation when I enter the desired_stat_date and desired_end_date then the suggestions will be filtered.
(CurrentPageID() == "add") ? "d
BETWEEN '". CurrentPage()->desired_start_date->CurrentValue ."' AND '". CurrentPage()->desired_end_date->CurrentValue ."' " : ""
When I enter the following code then my suggestion table is correct but I can not define the desired_start_date...
(CurrentPageID() == "add") ? "d
BETWEEN '2015-02-02' AND '2015-02-02' " : ""
I appreciate much your help. Thanks anyway. I am not sure here if I am doing correct things here? If this way is correct with PHPMaker?
thanks
mpol_ch