wongsa
Posts: 9
|
| Posted: 08/21/2007, 6:06 PM |
|
Hi,
I had s_start_date,s_end_date data type date on serach form. I need to modify s_end_date = s_end_date+1 before send parameter to grid.How I do this case?
Thank in advance,
|
 |
 |
datadoit.com
|
| Posted: 08/22/2007, 5:10 AM |
|
wongsa wrote:
> Hi,
>
> I had s_start_date,s_end_date data type date on serach form. I need to modify
> s_end_date = s_end_date+1 before send parameter to grid.How I do this case?
>
> Thank in advance,
>
> ---------------------------------------
Perhaps modify the value in OnValidate for the field.
$Component->SetValue(CCDateAdd($Component->GetValue(),+1 day));
|
|
|
 |
ReneS
Posts: 225
|
| Posted: 08/22/2007, 5:42 AM |
|
Hi,
you could also do that in your sql statement of the result grid. (I think..)
Rene
|
 |
 |
wongsa
Posts: 9
|
| Posted: 08/22/2007, 8:59 AM |
|
Hi datadoit.com
s_to_date is date picker ,I try on validate but not success please advise again.
|
 |
 |
wongsa
Posts: 9
|
| Posted: 08/22/2007, 9:11 AM |
|
Hi RenS,
I put CCDateAdd(s_to_date, +1 day) in grid Parameter.It's work great !
Thanks for idea Rens &datadoit.com
|
 |
 |
|