CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 editable grid custom update

Print topic Send  topic

Author Message
nhbw19t


Posts: 29
Posted: 09/21/2007, 8:55 PM

Hello,

I have an editable grid that pulls the grid from an SQL statement, not from a table in the builder.

I am trying to update a hidden field if the checkbox is checked. I have this working on another editable grid pulling the data from a table in the builder.

Has anyone run into this issue?

if ($eg->checkbox->GetValue() == 1 ) {  
   $eg->ds->cp["status"]->SetValue(3);  // works on the EG with a table source  
   $eg->ds->status->SetValue(3); //it sets the value, but does not update the SQL statement.  
}  
I have read the post about how to access the editable grid values, but it is not working in this case. I can issue a get Value on the status field in the before build update and the before execute update and see the new value. I echo the SQL and still doesn't update the value.


I have a custom update to update a single table with the status field set to be a control value.

Spent all day on thiss issue.

ccs2.3.latest


_________________
J.D. Archer
GE Transportation
View profile  Send private message
nhbw19t


Posts: 29
Posted: 10/03/2007, 6:51 AM

I found a work around to this topic as well. Seems to not work in either 3.2 or 2.3 as designed.


I have a custom update sql query in the before update event and insert the data that way.


_________________
J.D. Archer
GE Transportation
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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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