Loading...
 

CX_DB_UTILITY::GetOwner

CX_DB_UTILITY::GetOwner

Description:

This function returns the "owner" object of the passed object. The object can be a member of any type, e.g. a value object, a REL1-N object or a collection.

Code example:
ObjectList(objects, VIEW_ONLY, DRAG_COPY, ITEM(, 13), 1, 1, 100, 10) [ Define(Owner) dbUtil Call(GetOwner); INITIALIZE: [ "CX_CLASS::call(Owner)" COLOR LIGHTRED ] SetFormat [ "CX_CLASS::this" COLOR BLUE, 0 6 ] SetFormat ]

Var(dbUtil) GetManager(OBJECT) Call(GetDBUtility) -> dbUtil
Var(p) FindFirst(CX_PERSON) -> p
p Get(employees) dbUtil Call(GetOwner) // result is p
Stack
Stack Position Object type Brief description
Stack(In) Top CX_DB_UTILITYTool object
Top 1 OBJECT Y Object
Stack(Out) Top OBJECT X where object X contains object Y as data field.
Stack
Stack Position Object type Brief description
Stack(In) Top CX_DB_UTILITYTool object
Top 1 COLLECTION Y a collection
Stack(Out) Top OBJECT X found object, where object X contains collection Y as a data field.

Function call: Call(GetOwner)