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

 Accessing Controls from Include-Pages

Print topic Send  topic

Author Message
bohu69

Posts: 6
Posted: 10/11/2007, 9:53 AM

I have the following situation:

on my index page, i have a Searchform (sform), a Resultgrid (rgrid) and 2 Includepages (incpage1 and incpage2).
The Include-Pages are visible after the Search returned a Result.
Now i want to access some Values from the resultgrid (which is not inside the Include Pages) from the PHP-Code (Event Beforeshow) in one of the include pages.

How to get the values from the resultgrid within the include page incpage1 ?

I tried the following:

  
global $rgrid;  
  
$value1 = $rgrid->incpage1->GetValue();  
$incpage1->label1->SetValue($value1);  
  

But i get only the error message:
Fatal error: Call to a member function on a non-object in ....

thanks for your tips
bohu

_________________
bohu
-------------------------------------------------------------------------
CCS 3.1.1 / PHP 5.1.6 / Linux / Apache 2.0.59
View profile  Send private message
Damian Hupfeld
Posted: 10/13/2007, 4:54 AM

$value1 = $incpage->$grid->$field->GetValue();


"bohu69" <bohu69@forum.codecharge> wrote in message
news:5470e550b64d96@news.codecharge.com...
>I have the following situation:
>
> on my index page, i have a Searchform (sform), a Resultgrid (rgrid) and 2
> Includepages (incpage1 and incpage2).
> The Include-Pages are visible after the Search returned a Result.
> Now i want to access some Values from the resultgrid (which is not inside
> the
> Include Pages) from the PHP-Code (Event Beforeshow) in one of the include
> pages.
>
> How to get the values from the resultgrid within the include page incpage1
> ?
>
> I tried the following:
>
>
  
> global $rgrid;  
>  
> $value1 = $rgrid->incpage1->GetValue();  
> $incpage1->label1->SetValue($value1);  
>  
> 
>
> But i get only the error message:
> Fatal error: Call to a member function on a non-object in ....
>
> thanks for your tips
> bohu
>
> _________________
> bohu
> -------------------------------------------------------------------------
> CCS 3.0.4.12 / PHP 5.1.6 / Linux / Apache 2.0.59
> ---------------------------------------
> 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.