[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-developers] Schemas, Classes and Properties...



Hello all....

I seem to have hit a snag. After trying unsuccessfully for a bunch of
hours, I have come to the forum for advice.

I have successfully created a new system scoped schema classs. My php
script opens the CCE connection and retrieves the values as set by the
default tag in the property definition. Everything looks good up to that
point. When I post the updated values to the php handler page, all the
values are set using the standard $cceClient->setObject method. I have
confirmed that the posted values are indeed passed to the php handler
page, and are therefore placed into the associative array used to pass
the data to the CCE system. The problem is the values never get saved to
the CCE Database. What am I doing wrong??? It just seems odd that I can
get data out of the database, just can't seem to write data back.

This is my php formHandler routine...

include("ServerScriptHelper.php");

$serverScriptHelper = new ServerScriptHelper();
$cceClient = $serverScriptHelper->getCceClient();

$cceClient->setObject("System",
  array(
    "enable" => $devEnable,
    "model" => $devModel,
    "level" => $devLevel,
    "timeout" => $devTimeout),
  "Cyrius");

$errors = $cceClient->errors();

print($serverScriptHelper->toHandlerHtml("/cyrius/config.php",
       $errors, "cyrius-config"));

Also, Is it absolutely necessary to have a event handler that creates a
connection to CCE that recieves the event object and calls the
$cce->bye("SUCCESS"); method in order to commit the data to the CCE
Database? Is this part of my problem.

Thanks in advance...

Robert Walter
rwalter@xxxxxxxxx
Cyrius Automation Inc.
78 - 678 Citadel Drive
Port Coquitlam, BC
V3C6M7  CANADA