Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagecpp
themeConfluence
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

...

Insert excerpt
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

Options

...

 

Example

...

 

Code Block
languagecpp
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 (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "model" and parent = "6062220"