Please enable JavaScript to view this site.

QPR Knowledge Base 2019.1

Navigation: Developer's Guide > QPR API > The Object Model > Common > Actions

RemoveExternalParent

Scroll Prev Top Next More

Revision history:

Introduced in QPR 7.5.1

Last changed in QPR 8.0 SP1

 

Removes an external (i.e. non-action) parent from an action

 

Synopsis:

 

Actions.RemoveExternalParent(ActionId, Product, ModelId, ObjectId)

 

Parameters:

 

ActionId: Integer. ID of the action from which an external parent is removed.

Product: String: PG | SC | Portal. If this is PG or SC, also ModelId and ObjectId need to be defined, and in the case this is Portal, Discussion Forum is used as the parent. Note that this cannot be PG when calling this function from the SCApplication.Actions object. However, SC can be used when calling the function from the PGApplication.Actions object.

ModelId: Integer. In the case product is SC or PG, define here the ID of the model in which the external parent resides.

ObjectId: Integer. In the case product is SC or PG, define the ID of the external parent here.

 

Required Rights:

 

Modify rights to the action defined by ActionId.

 

Return Values:

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

 

RV_SUCCESS

RV_UNKNOWN_ERROR

RV_ASSOCIATION_NOT_FOUND

RV_ACCESS_DENIED

RV_APPLICATION_QUIT_CALLED

RV_NOT_CONNECTED_TO_SERVER

RV_NOT_AUTHENTICATED

RV_UNSUPPORTED_OPERATION

 

Example Procedure:

 

iRet = SCApplication.Actions.RemoveExternalParent(456456, "SC", iDentorexId, iTopElementId)