CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 BUG - CCS 2.0 Updatable Grid CheckInsert Function

Print topic Send  topic

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

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
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.