[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-developers] Schemas, Classes and Properties...
- Subject: RE: [cobalt-developers] Schemas, Classes and Properties...
- From: "Robert Walter" <rwalter@xxxxxxxxx>
- Date: Sun Jul 28 11:15:01 2002
- Organization: Cyrius Automation Inc.
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
Hey,
Sorry about all the posts....
I seem to have gotten by the cceclient utility problem. I had a small
error in my handler routine which was causing the script to return an
'exit(1)'. Anyhow, fixed that and now I can GET and SET from the
cceclient command line. However, I still cannot set the values from my
PHP script. They just keep going back to the defaults.
Many thanks again...
Robert Walter
rwalter@xxxxxxxxx
Cyrius Automation Inc.
78 - 678 Citadel Drive
Port Coquitlam, BC
V3C6M7 CANADA
-----Original Message-----
From: cobalt-developers-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-developers-admin@xxxxxxxxxxxxxxx] On Behalf Of Robert
Walter
Sent: Sunday, July 28, 2002 12:58 AM
To: cobalt-developers@xxxxxxxxxxxxxxx
Subject: [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
_______________________________________________
cobalt-developers mailing list cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers