CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Setting value of an editable grid field

Print topic Send  topic

Author Message
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


View profile  Send private message
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.... :)
View profile  Send private message
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


View profile  Send private message
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.
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.