edmiDeleteAggrValue
EdmiError edmiDeleteAggrValue(SdaiAggr aggrId, SdaiPrimitiveType valueType, ... );
Deletes all aggregate elements in the specified aggregate that have the specified data value. When the specified aggregate is an ARRAY, the actual array elements will not be deleted but the actual array elements will be unset, i.e. the value will be set to indeterminate. This function is only applicable to aggregates owned by application instances. The actual data model that holds the specified aggregate must be open for write access before this function can be successfully performed. A numeric aggregateID that uniquely identifies the actual aggregate in the EDMdatabase.
Arguments
Type | Name | Comment |
SdaiAggr | valueType | The data type, i.e. the primitive type of the data value to be search for in the actual aggregate. This <valueType> must be the same or a compatible type of the primitive type of the actual aggregate element primitive type defined in the related EXPRESS schema. The primitive type sdaiSELECT can be used to specify all data types. The primitive type sdaiADB can be used to specify all data types except typed values. The primitive type sdaiINTEGER is compatible with sdaiREAL, and sdaiBOOLEAN is compatible with sdaiLOGICAL, hence conversion between these compatible data types will be performed when required. |
SdaiPrimitiveType | value | The data value to be deleted from the specified aggregate. The combination of the arguments <valueType> and <value> uniquely identifies an aggregate element value. |
Return Value
Â
Options
 Â
Â
Example
Â
 EdmiError rstat; SdaiAggr aggrId; ... if (rstat = edmiDeleteAggrValue(aggrId, sdaiSTRING, "abcd1234")) { /* Error in operation */ printf("\nError in edmiDeleteAggrValue: %s\n", edmiGetErrorText(rstat)); goto error; } . . .
Â
See also
Filter by label
There are no items with the selected labels at this time.
 Â