CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Changing the value of a label in the before show and displaying it

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message
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", ""));

:*)
View profile  Send private message
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 :-D
Thanks
Lulazz
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.