DavidS
|
| Posted: 05/17/2005, 9:50 AM |
|
I am trying to hide another grid on a page when a certain grid is in "add mode".
I know how to do it in .asp, but what would be the syntax for php.
Thanks for your help.
|
|
|
 |
peterr
Posts: 5971
|
| Posted: 05/17/2005, 2:48 PM |
|
Could you please provide your ASP code. This way possibly it could be easier to convert it to PHP rather than try to replicate your scenario from scratch.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
DavidS
|
| Posted: 05/17/2005, 6:24 PM |
|
Thanks in advanve for your help. (two grids - tbl_policy and tbl_policyresponsible)
If not (tbl_policy.EditMode) then
tbl_policyresponsible.visible = false
else
end if
|
|
|
 |
DonB
|
| Posted: 05/18/2005, 7:39 AM |
|
Offhand I'd suspect you are having problems with PHP's case-sensitive
behavior.
For a grid named "MyGrid" these will work
ASP: mygrid.visible = false
PHP: $MyGrid->Visible = false;
these will not:
PHP: $mygrid->visible = false
PHP: $mygrid->Visible = false
PHP: $MyGrid->visible = false
Also, the grid must be defined as a 'global' in the event handler:
global $MyGrid;
Obviously, PHP prefixes variables with the $ character, too.
And lastly, the grid needs to be set visible/not visible before it is
'shown', best done in the grid's Before Show event
--
DonB
http://www.gotodon.com/ccbth
"DavidS" <DavidS@forum.codecharge> wrote in message
news:5428a995eca9df@news.codecharge.com...
>
> Thanks in advanve for your help. (two grids - tbl_policy and
> tbl_policyresponsible)
>
>
> If not (tbl_policy.EditMode) then
> tbl_policyresponsible.visible = false
> else
> end if
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|