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.
|
|
|
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.
|
|
|
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.
|
|
|
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.
|
|
|
becherovka
Posts: 8
|
Posted: 05/24/2004, 2:03 AM |
|
Any comments....?
|
|
|
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 |
|
|