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

 cant hide a grid in an include

Print topic Send  topic

Author Message
Furry339
Posted: 09/30/2005, 6:06 AM

hi, i have a problem hidding a grid on an included page. i put the following code into the before show event of the grid in question.

$inc_client->is_clients1->Visible = false;
<page>-><grid>->Visible = false;

but nothing happens. Please help.
materix
Posted: 09/30/2005, 6:12 AM

Is the name of the include-element in the main page set to "inc_client"?
Furry339
Posted: 09/30/2005, 6:40 AM

no, will that make a difference?
materix
Posted: 09/30/2005, 6:52 AM

When you write: <page>-><grid>->Visible = false;

Then <page> refers to the name of the include-class in the main-page. Remember also to set global statement, e.g.

global $inc_page;
$inc_page->is_clients1->Visible = false;
Furry339
Posted: 09/30/2005, 7:34 AM

Thanx!!!! it works!
Necromod
Posted: 10/11/2005, 3:17 AM

Hi all,
it seems, that I have the same problem.

My page structure:
Partner_Details includes Partner_View
Partner_View includes Partner_View_Allgemein

In Partner_View_Allgemein there are a grid and a record. On condition that an URL-Parameter is set to an explicit value, I want to hide the grid and show the record, else hide the record and show the grid.

grids name: Allgemein_View
records name: Allgemein_Edit

  
global $Partner_View_Allgemein;  
  
if(CCGetParam("action") == "edit"){  
   $Partner_View_Allgemein->Allgemein_View->Visible = false;  
   $Partner_View_Allgemein->Allgemein_Edit->Visible = true;  
}else{  
   $Partner_View_Allgemein->Allgemein_View->Visible = true;  
   $Partner_View_Allgemein->Allgemein_Edit->Visible = false;  
}  

But unfortunatelly this didn't work, both forms are shown, even if I set bot manually to 'visible = false' without condition.

What went wrong? On an other example which was very similar it works.
Necromod
Posted: 10/12/2005, 7:59 AM

It seems that the problem is, if you are include pages over more than 2 steps (page1 include page2 include page3 etc.) you won´t be able to modify the visibility of forms in page3 via custom codes, but via property panel.

Should I consider this as a feature or as an bug?
clue
Posted: 10/26/2005, 12:28 AM

What is the solution for vb.net?

Thanks!

Chris

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.

MS Access to Web

Convert MS Access to Web.
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.