RussellP
Posts: 20
|
| Posted: 09/22/2007, 12:59 AM |
|
Hi
I am working with the code example to make a control invisible, with a record named responses and a test box names authors; In the server on show event, I have
global $Responses;
$Responses->Author->Visible = False;
This code works fine. The question is, can the control authors be made visible? I tried adding the following code to a button, with the server on click method, but the control is not made visible.
global $Responses;
$Responses->Author->Visible = True;
Thanks
Russell
_________________
Russell P |
 |
 |
datadoit.com
|
| Posted: 09/22/2007, 6:45 AM |
|
One is happening before the other. The button's onclick event happens
before the page's before show event. Thus, the page's before show code
is the last thing that is happening in this situation.
Try using the button to set a URL param, then check for this parameter
in the record's BeforeShow event to determine visibility or not.
|
|
|
 |
|