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 -> General/Other

 (Resolved) correct record form (empty form) using panels

Print topic Send  topic

Author Message
Troyh

Posts: 13
Posted: 09/23/2008, 1:29 AM

Im using ccs 3.2 , php and mysql

My problem is asigning the correct record form with when i have 2 forms on one page wrapped in a panel of there own,

the before show event i have on each of the records is:

<?php
//BindEvents Method @1-7EE0CF6A
function BindEvents()
{
global $Panel1;
global $Panel2;
$Panel1->CCSEvents["BeforeShow"] = "Panel1_BeforeShow";
$Panel2->CCSEvents["BeforeShow"] = "Panel2_BeforeShow";
}
//End BindEvents Method

//Panel1_BeforeShow @44-AAD8AF72
function Panel1_BeforeShow(& $sender)
{
$Panel1_BeforeShow = true;
$Component = & $sender;
$Container = & CCGetParentContainer($sender);
global $Panel1; //Compatibility
//End Panel1_BeforeShow

//Custom Code @162-2A29BDB7
// -------------------------
if (CCGetFromGet("loadforms_id",1) == 1)
$Component->Visible = true;
else
$Component->Visible = false;

// -------------------------
//End Custom Code

//Close Panel1_BeforeShow @44-D21EBA68
return $Panel1_BeforeShow;
}
//End Close Panel1_BeforeShow

//Panel2_BeforeShow @115-96696C3D
function Panel2_BeforeShow(& $sender)
{
$Panel2_BeforeShow = true;
$Component = & $sender;
$Container = & CCGetParentContainer($sender);
global $Panel2; //Compatibility
//End Panel2_BeforeShow

//Custom Code @163-2A29BDB7
// -------------------------
if (CCGetFromGet("loadforms_id",2) == 2)
$Component->Visible = true;
else
$Component->Visible = false;
// -------------------------
//End Custom Code

//Close Panel2_BeforeShow @115-AE7F9FB3
return $Panel2_BeforeShow;
}
//End Close Panel2_BeforeShow


?>



any help would be great.
thanks
View profile  Send private message

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.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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