gulam
Posts: 55
|
| Posted: 09/26/2009, 2:29 PM |
|
Hi,
I have 2 grids on my page, one is a normal grid(gridA) the other an editable one(gridB). I need to pick up the value of one field in gridA and set it as a value of a field in gridB. For some reason i am failing to do this.
Would appreciate any help.
Gulam
|
 |
 |
damian
Posts: 838
|
| Posted: 09/27/2009, 4:47 AM |
|
try using SetValue and GetValue in before show of second grid.... search the help on these...
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
gulam
Posts: 55
|
| Posted: 09/27/2009, 6:13 AM |
|
Thanks Damian,
I have the following in my second grid's before show
global $gridA;
global $gridB;
$gridB->refno->SetValue($gridA->refno->GetValue());
But I get this error
Fatal error: Call to a member function GetValue() on a non-object in /home/xyz/public_html/scripts/Complaints/AddResponse.php on line 863
Gulam
|
 |
 |
jacem
Posts: 87
|
| Posted: 10/02/2009, 5:01 PM |
|
The way I do this is I set a session variable, from your example: MasterRefNo during the Before show of that refno control in gridA. I set the custom insert for the gridB component so that refno is inserted not from the gridb refno control but from the 'Session Variable' called MasterRefNo.
Hope this helps you.
|
 |
 |