sdaiPutADBValue


Writes the specified value of the specified primitive type to an ADB container. An ADB container can be used to write any data type except typed value to an EDMdatabase. After this operation is completed, the value in the actual ADB container can be used in subsequent EDMinterface operations.
An ADB container cannot contain another ADB container as data value, i.e. the primitive type sdaiADB is illegal as the <valueType> argument in this operation.
An ADB container is not persistent in an EDMdatabase. All allocated ADB containers will be deleted when the open _EDMserver_ session is closed.
Related functions: sdaiCreateADB , sdaiCreateEmptyADB , sdaiGetADBType , sdaiGetADBValue , sdaiDeleteADB
Header:
#include "sdai.h"
Prototype:
void sdaiPutADBValue(SdaiADB           adbId,
                      SdaiPrimitiveType valueType, 
                       ...); 
Arguments:

adbId

A numeric adbID that uniquely identifies an ADB container in an open EDMserver session.
The adbID is defined by a sdaiCreateADB or a sdaiCreateEmptyADB function.

valueType

The data type, i.e. the primitive type of the data value to be written to the specified ADB container. All possible primitive types except sdaiADB is legal in this operation.

value

The value itself, that must be of type <valueType>.

Returns:
Void – use sdaiErrorQuery to check for error in operation.
Example:
SdaiADB adbId;
SdaiErrorCode errCode;
...
adbId = sdaiCreateEmptyADB();
. . .
sdaiPutADBValue(adbId, sdaiSTRING, "xcbv123");
if (errCode = sdaiErrorQuery()) {
/* Error in operation */ 
printf("\nError: %s in sdaiPutADBValue \n", 
edmiGetErrorText(errCode)); 
goto error; 
}
. . .