edmiServGetAttrBN

EdmiError edmiServGetAttrBN(SdaiInstance      instance,
                             SdaiString        attributeName,
                             SdaiPrimitiveType valueType,
                             void              *value);

Reads an attribute from the EDM Server. Equivalent to sdaiGetAttrBN, but refers to the EDM Server database. This function may only be invoked from thick clients.

Arguments


TypeNameComment
SdaiInstance

instance

A numeric id that uniquely identifies an instance in the EDMdatabase operated by the EDM Server.

SdaiString

attributeName

The name of the attribute to read. In the cases of multipple attribute inheritance, the attribute name must be qualified with the entity name of the supertype from which the attribute was inherited.

SdaiPrimitiveType

valueType

An SdaiPrimitiveType that is assignment compatible with the declared attribute type in the related EXPRESS schema. See decalaration of SdaiPrimitiveType in file sdai.h. The SdaiPrimitiveType, sdaiAGGR, can not be used as value type. sdaiSELECT may be used to read all data types. sdaiADB may be used to read all data types except typed values.  sdaiINTEGER is compatible with sdaiREAL, and sdaiBOOLEAN is compatible with sdaiLOGICAL, hence conversion between these compatible data types will be performed when required.

void

value

The value to assign to <attributeName> in <instance>. The type of <value> must be the same as specified in <valueType>.

Return Value


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_EDMInterface'.

Options


 

Example


 

EdmiError rstat;
 SdaiInstance myInstId;
 SdaiInteger myInt;
 SdaiPrimitiveType myType;
 . . .
 myType = sdaiINTEGER;
 if (rstat = edmiServGetAttrBN(myInstId, "NAME", myType, &myInt)) {
 /* Error in operation */
 printf("\nError %d in edmiServGetAttrBN : %s \n", rstat,
 edmiGetErrorText(rstat)); 
 goto error; 
 }
 . . .

 

See also

Filter by label

There are no items with the selected labels at this time.