EMG
|
| Posted: 04/02/2003, 1:17 PM |
|
When I create a php 10 row, insert only, updatable grid the CheckInsert function (Common.php - it confirms that the insert row has values to insert) returns false every time without checking anything. The result is an insert attempt for every row and a db error when required fields are missing.
The generated CheckInsert is not referencing the posted vars as earlier versions did. I have isolated the problem and am pretty sure something is missing in the function. I created a second page it repeated the apparent omissions.
The 2.0.5.6 Buggy script is shown below.
Any body run into this? Yes support staff has dragged their feet for over a week on this.
CCS 2.0.5.6 function: (nothing is checked)
----------------------------------------------
//CheckInsert Method @4-A92F1C6B
function CheckInsert($RowNumber)
{
$filed = false;
return $filed;
}
//End CheckInsert Method
CCS 2.0.x.beta function: (it worked well)
----------------------------------------------
function CheckInsert($RowNumber)
{
$filed = false;
$filed = ($filed || strlen(CCGetFromPost("DocType_" . $RowNumber, "")));
$filed = ($filed || strlen(CCGetFromPost("DocNumber_" . $RowNumber, "")));
$filed = ($filed || strlen(CCGetFromPost("RecDate_" . $RowNumber, "")));
$filed = ($filed || strlen(CCGetFromPost("Priority_" . $RowNumber, "")));
$filed = ($filed || strlen(CCGetFromPost("Reconveyed_" . $RowNumber, "")));
$filed = ($filed || strlen(CCGetFromPost("Party1_" . $RowNumber, "")));
$filed = ($filed || strlen(CCGetFromPost("Party2_" . $RowNumber, "")));
$filed = ($filed || strlen(CCGetFromPost("OriginalAmount_" . $RowNumber, "")));
$filed = ($filed || strlen(CCGetFromPost("TitleCo_" . $RowNumber, "")));
$filed = ($filed || strlen(CCGetFromPost("FullVal_" . $RowNumber, "")));
$filed = ($filed || strlen(CCGetFromPost("PayoffAmount_" . $RowNumber, "")));
return $filed;
}
//End CheckInsert Method
|
|
|
 |
EMG
|
| Posted: 04/02/2003, 1:55 PM |
|
Correction- the function is in the grid page not the common page.
|
|
|
 |
RC
|
| Posted: 05/20/2003, 1:08 PM |
|
Took me about 3 hours to figure out the problem. It is annoying at least.
|
|
|
 |
RC
|
| Posted: 05/20/2003, 1:11 PM |
|
How can we workaround this problem while they release a patch?
|
|
|
 |
|