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 -> PHP

 CCT Load Ajax Dependent ListBoxes - warning

Print topic Send  topic

Author Message
caran

Posts: 15
Posted: 09/17/2012, 9:46 AM

Hy,

By using the Dependent Listbox i got these Warning:

Wrong server response:

<br />
<b>Warning</b>: Creating default object from empty value in <b>C:\xampp\htdocs\ABAKUS\Dispo2_events.php</b> on line <b>1285</b><br />
[["1", "T - AB WERK"], ["2", "T - FREI HAUS"], ["100", "T - SCHUSTER MOOSEN"], ["101", "T - KR SPEDITION"], ["102", "T - EWALS CARGO CARE"], ["103", "T - TROHA SPEDITION"], ["104", "T - WELZENBACH"], ["105", "T – ALLIED"], ["106", "T - GEORG STEIGER"], ["10
...


There is also a warning for row 1252:

Wrong server response:

<br />
<b>Warning</b>: Creating default object from empty value in <b>C:\xampp\htdocs\ABAKUS\Dispo2_events.php</b> on line <b>1252</b><br />
[]
...



The Code ist automatically produced by CCT:

//CCT Load Ajax Dependent ListBoxes @50-18C33FDB
global $DefaultDateFormat; // Needed for Date type parameters
if (isset($_GET["dlleistungSearchs_fzg_id"])) {
$s_fzg_id->DSType = dsTable; <----- THIS IS ROW 1252
$DataSource = new clsDBWLPG01();
$ds = & $DataSource;
$DataSource->SQL = "SELECT * \n" .
"FROM fahrzeug {SQL_Where} {SQL_OrderBy}";
list($s_fzg_id->BoundColumn, $s_fzg_id->TextColumn, $s_fzg_id->DBFormat) = array("fzg_id", "fzg_match", "");
$DataSource->Parameters["urldlleistungSearchs_fzg_id"] = CCGetFromGet("dlleistungSearchs_fzg_id", NULL);
$DataSource->wp = new clsSQLParameters();
$DataSource->wp->AddParameter("1", "urldlleistungSearchs_fzg_id", ccsInteger, "", "", $DataSource->Parameters["urldlleistungSearchs_fzg_id"], -1, false);
$DataSource->wp->Criterion[1] = $DataSource->wp->Operation(opEqual, "fsp_id", $DataSource->wp->GetDBValue("1"), $DataSource->ToSQL($DataSource->wp->GetDBValue("1"), ccsInteger),false);
$DataSource->Where =
$DataSource->wp->Criterion[1];
$sql = CCBuildSQL($ds->SQL, $ds->Where, $ds->Order);
$ds->query($sql);
$JSHash = '[';
while ($ds->next_record()) {
$JSHash .= '["' . addslashes(intval($ds->f("fzg_id"))) . '", "' .
addslashes($ds->f("fzg_match")) . '"]';
if ($ds->has_next_record()) {
$JSHash .= ', ';
}
}
$JSHash .= ']';
global $Charset;
$Charset = $Charset ? $Charset : "utf-8";
if ($Charset) {
header("Content-Type: text/html; charset=" . $Charset);
}
echo $JSHash;
exit;
}
global $DefaultDateFormat; // Needed for Date type parameters
if (isset($_GET["dlleistungfzg_id"])) {
$fzg_id->DSType = dsTable; <------- THIS IS ROW 1285
$DataSource = new clsDBWLPG01();
$ds = & $DataSource;
$DataSource->SQL = "SELECT * \n" .
"FROM fahrzeug {SQL_Where} {SQL_OrderBy}";
list($fzg_id->BoundColumn, $fzg_id->TextColumn, $fzg_id->DBFormat) = array("fzg_id", "fzg_match", "");
$DataSource->Parameters["urldlleistungfzg_id"] = CCGetFromGet("dlleistungfzg_id", NULL);
$DataSource->wp = new clsSQLParameters();
$DataSource->wp->AddParameter("1", "urldlleistungfzg_id", ccsInteger, "", "", $DataSource->Parameters["urldlleistungfzg_id"], -1, false);
$DataSource->wp->Criterion[1] = $DataSource->wp->Operation(opEqual, "fsp_id", $DataSource->wp->GetDBValue("1"), $DataSource->ToSQL($DataSource->wp->GetDBValue("1"), ccsInteger),false);
$DataSource->Where =
$DataSource->wp->Criterion[1];
$sql = CCBuildSQL($ds->SQL, $ds->Where, $ds->Order);
$ds->query($sql);
$JSHash = '[';
while ($ds->next_record()) {
$JSHash .= '["' . addslashes(intval($ds->f("fzg_id"))) . '", "' .
addslashes($ds->f("fzg_match")) . '"]';
if ($ds->has_next_record()) {
$JSHash .= ', ';
}
}
$JSHash .= ']';
global $Charset;
$Charset = $Charset ? $Charset : "utf-8";
if ($Charset) {
header("Content-Type: text/html; charset=" . $Charset);
}
echo $JSHash;
exit;
}
//End CCT Load Ajax Dependent ListBoxes


If i set in php.ini display errors to Off there is no Problem in working.

I understand that this is no big problem, but it seems for me not really clean 8-)

Did somebody know whats wrong?

(I'm using CCS 4.3)

rgds
Robert
View profile  Send private message
MichaelMcDonald

Posts: 640
Posted: 09/18/2012, 2:22 AM

ISP's all use varying error checking methods.
If your code works, leave ;error_reporting in php.ini and ignore it.

With CCS in some instances I have had to remark out a default ccs generated line in classes.php because of a fatal error.
_________________
Central Coast, NSW, Australia.

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.