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 |
 |
 |
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.... :)
|
 |
 |
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 |
 |
 |
|