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