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

 Editable Grid default values [Resolved]

Print topic Send  topic

Author Message
RoyBaird

Posts: 115
Posted: 11/17/2009, 9:34 AM

How do I stop CCS from adding empty rows if I have a defalt value for one of the fields. Here is the code that I thought would work in the Before Build Insert or Before Execute Insert, but it does not stop the action.

dep_nbr is null or blank

if ( !$Component->dep_nbr->GetValue()) {
$Component->DataSource->CmdExecution = false;
}

thanks,
_________________
Roy
View profile  Send private message
damian

Posts: 838
Posted: 11/18/2009, 1:55 AM

try this....
http://forums.yessoftware.com/posts.php?post_id=104083

_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message
RoyBaird

Posts: 115
Posted: 11/18/2009, 5:08 AM

here is how Yes Support said to solve this issue and it works perfect. this is a PHP project.

Access the fields from Before Build Insert/Update events please use the code
$Container->DataSource->field_name->SetValue("new value");

_________________
Roy
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.

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.