Loading...
 

CX_DB_UTILITY::RemoveAlienObjects

CX_DB_UTILITY::RemoveAlienObjects

Description:

This function removes non-type objects from a collection (i.e. all objects that do not match the specification of RefType() in the DDI or slot dictionary).

Code example:

Define(SoftRepair)
Widget(, objects) iterate 
{ -> object 
    object Type case CX_PRODUCTION_DATA_CAPTURE: object "predecessors" dbUtil Call(RemoveAlienObjects)
                                                 object Select(, objects) Refresh 
                     CX_LOG_CUBE: object "transactions" dbUtil Call(RemoveAlienObjects)
                                  object Select(, objects) Refresh 
                     CX_UNIT_RATE: object "rateTables" dbUtil Call(RemoveAlienObjects)
                                   object Select(, objects) Refresh 
                     CX_TRANSACTION: object "predecessors" dbUtil Call(RemoveAlienObjects)
                                     object Select(, objects) Refresh 
                     CX_SINGLE_ALLOCATION: NoOperation
    endCase
};

Stack
Stack Position Object type Brief description
Stack(In) Top CX_DB_UTILITY Tool Object
Top 1 OBJECT Object
top 2 STRING Data field name (of a collection)
Stack(Out) Top INTEGER Number of objects removed

Function call: Call(RemoveAlienObjects)