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

 control value in beforeshow event

Print topic Send  topic

Author Message
becherovka

Posts: 8
Posted: 05/20/2004, 3:33 AM

I try to set a value for a label control. I did everything shown in help files. I have a label control name LABEL1 in grid TASKS. I opened a before Show event for the grid with the code below:

global $tasks;

$tasks->label1->SetValue("Bob");

After implementing the code, what I get is only a blank page. Whole pages content disappears. When I delete the event again the page is visible.

What I am doing wrong?

Thanks for the helps in advance.
View profile  Send private message
hidran

Posts: 29
Posted: 05/20/2004, 6:58 AM

try doing a beforeshow of label1 and put the same code.
It should work also with the beforeshow of the grid.
take a look of php log file to see if there is any errors.
View profile  Send private message
becherovka

Posts: 8
Posted: 05/20/2004, 7:03 AM

I did it. Also tried to put it grids before show. Still not working. I'll look to the php log file.
View profile  Send private message
Don Safar
Posted: 05/20/2004, 8:52 AM

If the label control is inside the grid, you should use the beforeshowrow
event to modify it.
becherovka

Posts: 8
Posted: 05/21/2004, 2:04 AM

I used also beforeshowrow event but still get only balnk page. :-/
View profile  Send private message
becherovka

Posts: 8
Posted: 05/24/2004, 2:03 AM

Any comments....?
View profile  Send private message
Last Hero
Posted: 05/27/2004, 7:16 AM

try switch error_reporting to E_ALL
klwillis


Posts: 428
Posted: 05/27/2004, 7:40 AM

You should be able to do all this through actions.

#1 : Select the 'Before Show' Event.

#2 : Use the 'Retrieve Value for Control' Action

#3 : Specify the following for each ...
Control Name - label1
Source Type - Expression
Source Name - "Bob"


BTW:
I've had problems with code sometimes not being regenerated.
You may want to regenerate the code and then republish the page.

klwillis.dsl@verizon.net

_________________
Kevin Willis, VP/CIO
HealthCare Information Technology Specialist
http://www.nexushealthcare.com
"Fast - Convenient - Quality-Care"

Medical Software Consulting Services
Email : klwillis@nexushealthcare.com
Skype : klwillis2006
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.