QPR Knowledge Base 2017.1

GetParentElements

GetParentElements

Previous topic Next topic No directory for this topic  

GetParentElements

Previous topic Next topic Topic directory requires JavaScript Mail us feedback on this topic!  

Revision history:

Introduced in QPR 2015.1

 

Returns the parent elements of given elementId in given hierarchy.

 

Synopsis:

 

PGModel.GetParentElements(Hierarchy, ElementId, out arrayOfParentElementIds)

 

Parameters:

 

Hierarchy: Hierarchy ID (integer) or Hierarchy Symbol (string). The hierarchy id or hierarchy symbol for the hierarchy where the element exists.

ElementId: ElementId (integer) or ElementSymbol (string). The element id or symbol of the element whose parents are acquired.

arrayOfParentElementIds: Array of parent element ids. Returns NULL if no parents are found.

 

Required Rights:

 

View rights to the model.

 

Return Values:

Below are listed the return values that this function can return:

 

RV_SUCCESS

RV_APPLICATION_QUIT_CALLED

RV_HIERARCHY_NOT_FOUND

RV_INVALID_PARAMETER

 

 

Example Procedure:

 

 iResult = PGModel.GetParentElements(Hierarchy="H2", ElementId="MO1428971049", iParentsArray)