tt_spec_write(library call) tt_spec_write(library call)
NAME
tt_spec_write -- write the spec and any associated properties to the ToolTalk database
SYNOPSIS
#include <Tt/tt_c.h>
Tt_status tt_spec_write(
const char *objid);
DESCRIPTION
The tt_spec_write function writes the spec and any associated properties to the ToolTalk database. The type must be set before the spec is
written for the first time.
The objid argument is the identifier of the object involved in this operation.
RETURN VALUE
Upon successful completion, the tt_spec_write function returns the status of the operation as one of the following Tt_status values:
TT_OK The operation completed successfully.
TT_ERR_DBAVAIL
The ToolTalk service could not access the ToolTalk database needed for this operation.
TT_ERR_DBEXIST
The ToolTalk service could not access the specified ToolTalk database in the expected place.
TT_ERR_NOMP
The ttsession(1) process is not running and the ToolTalk service cannot restart it.
TT_ERR_OBJID
The objid passed to the ToolTalk service does not reference an existing object spec.
TT_ERR_OTYPE
The specified object type is not the name of an installed object type.
APPLICATION USAGE
It is not necessary to perform a write operation after a destroy operation.
Several changes can be batched between write calls; for example, the application can create an object spec, set some properties, and then
write all the changes at once with one write call.
SEE ALSO
Tt/tt_c.h - Tttt_c(5), tt_spec_create(3), tt_spec_type_set(3).
tt_spec_write(library call)
Check Out this Related Man Page
tt_spec_prop_set(library call) tt_spec_prop_set(library call)
NAME
tt_spec_prop_set -- replace property values
SYNOPSIS
#include <Tt/tt_c.h>
Tt_status tt_spec_prop_set(
const char *objid,
const char *propname,
const char *value);
DESCRIPTION
The tt_spec_prop_set function replaces any values currently stored under this property of the object spec with a new value.
The objid argument is the identifier of the object involved in this operation. The propname argument is the name of the property which
stores the values. The value argument is the value to be placed in the property value list. If value is NULL, the property is removed
entirely.
RETURN VALUE
Upon successful completion, the tt_spec_prop_set function returns the status of the operation as one of the following Tt_status values:
TT_OK The operation completed successfully.
TT_ERR_DBAVAIL
The ToolTalk service could not access the ToolTalk database needed for this operation.
TT_ERR_DBEXIST
The ToolTalk service could not access the specified ToolTalk database in the expected place.
TT_ERR_NOMP
The ttsession(1) process is not running and the ToolTalk service cannot restart it.
TT_ERR_OBJID
The objid passed to the ToolTalk service does not reference an existing object spec.
TT_ERR_PROPLEN
The specified property value is too long. (The maximum size is implementation specific, but is at least 2048.)
TT_ERR_PROPNAME
The specified property name is syntactically invalid.
SEE ALSO
Tt/tt_c.h - Tttt_c(5), tt_spec_prop_add(3).
tt_spec_prop_set(library call)
when i run a select query in database, it will return the objid based on the condtion. If there is no objid tht meets the condition, I will not get any value returned and the variable will hold nothing... so now how to chk tht the variable is blank or not. I tried the below piece of code:
if ;... (6 Replies)
on my AIX 6.1 CDE's ToolTalk server won't start. It says:
dtsession: Unable to exec /usr/dt/install/oldrules/dtrmrules.driver.
A file or directory in the path name does not exist.
How can I fix this? (0 Replies)
Hello All,
I have to import data from xml file to mysql database multi-time a day. I think it is better to write a tool to help this. So I write a web service in php. I don't know that if we can call a web service via shell script. If it can, I think we can create a cron job to help run it... (2 Replies)
Why my cde show no icons?
I have installed
X11.Dt.ToolTalk 7.1.3.15 C F AIX CDE ToolTalk Support
X11.Dt.adt 7.1.3.0 C F AIX CDE Application
X11.Dt.bitmaps 7.1.0.0 C F AIX CDE Bitmaps
X11.Dt.compat ... (8 Replies)