xpfCreateAggr
Â
FUNCTION xpfCreateAggr (instanceId : GENERIC; attributeId : GENERIC) newAggrId : AGGREGATE OF GENERIC;
Use this function to creates an empty aggregate instance and connects the created aggregate to the specified attribute, <attributeId>, in the specified instance, <instanceId>. A numeric aggregateID that uniquely identifies the new created aggregate, <newAggrId>, instance in the EDMdatabase will be the returned function value. This aggregateID should be used to identify this particular aggregate instance in subsequent EDMinterface operations. An aggregateID is persistent and fixed, i.e. it is constant throughout the lifetime of the actual aggregate instance. The actual aggregate type to be created is defined by the attribute declaration in the related EXPRESS schema. If the actual attribute domain is a nested aggregate, only the first level, i.e., the outer-most aggregate is created. The other levels must be created by one of the following functions: xpxCreateNestedAggr, xpxCreateNestedAggrByIndex or xpxCreateNestedAggrByIterator. The actual attribute that will own the new created aggregate is specified by a numeric attributeID that uniquely identifies an attribute definition instance in the EDMdatabase. If the actual attribute already owns an aggregate, the existing aggregate will be deleted before a new one is created by this function. An aggregateID can never be used as a data value in any of the EDMinterface put operations, it can only be returned as data value in EDMinterface get operations. This operation is only applicable to Explicit attributes in application instances. The model that will hold the new created aggregate must be open for write access before this function can be successfully performed.
Arguments
Type | Name | Comment |
GENERIC | instanceId | comments |
GENERIC | attributeId | Â |
Return Value
Â
Type | Name | Comment |
AGGREGATE OF GENERIC; | newAggrId | comments |
Options
Â
Example
<Missing Example>
Â
See also
Filter by label
There are no items with the selected labels at this time.
Â