lulazz
Posts: 29
|
| Posted: 08/30/2007, 9:10 AM |
|
I created a report that displays records between 2 dates
I want to show the dates in the report header, but I am not able to do it
I searched through the forum but I could only find posts from people with the same problem
The dates are passed as parameter to the sql and are called s_da and s_a
thanks
Lulazz
|
 |
 |
lulazz
Posts: 29
|
| Posted: 08/30/2007, 2:52 PM |
|
I tried the following in the before show event
$Report1->s_data->SetValue(CCGetFromGet("s_da", ""));
but it doesn't work
any help?
Thanks
Lulazz
|
 |
 |
lulazz
Posts: 29
|
| Posted: 08/30/2007, 3:51 PM |
|
Really strange....
It works if I put the label before the report and using $s_data->SetValue(CCGetFromGet("s_da", ""));
but I not undersand why it does not work putiing it in the report header and calling
$Report1->s_data->SetValue=(CCGetFromGet("s_da", ""));
|
 |
 |
DonP
|
| Posted: 08/30/2007, 4:17 PM |
|
Is the report header inside the grid or record? If not, then it's outside
the record set and you'll have trouble fetching the information. Presuming
that you are passing the dates to the page using some type of form, you can
still do it if it's outside the record set by using CCGetParam("s_da", "")
and creating a label with a Before Show event to display the value(s) to the
screen.
DonP
"lulazz" <lulazz@forum.codecharge> wrote in message
news:546d6ebe36a18a@news.codecharge.com...
>I created a report that displays records between 2 dates
> I want to show the dates in the report header, but I am not able to do it
> I searched through the forum but I could only find posts from people with
> the
> same problem
> The dates are passed as parameter to the sql and are called s_da and s_a
> but if I try to use {s_a} and {s_da} nothing happens
> thanks
> Lulazz
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
lulazz
Posts: 29
|
| Posted: 08/30/2007, 4:46 PM |
|
I had to put it in the page header and not in the record header.....
it orks but I don't know why
Thanks
Lulazz
|
 |
 |
|