CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Hide a grid when another is in add mode.

Print topic Send  topic

Author Message
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
View profile  Send private message
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/
>


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.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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