...
Code Block | ||||
---|---|---|---|---|
| ||||
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
...
.
...
...
aggrId
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. |
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
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Options
...
Example
...
Code Block | ||
---|---|---|
| ||
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 (Content by label) | ||||||
---|---|---|---|---|---|---|
|