Please enable JavaScript to view this site.

QPR Knowledge Base 2019.1

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

RemoveParent

Scroll Prev Top Next More

Revision history:

Introduced in QPR 7.5.1

 

Removes a parent action from the parent list of an action.

 

Synopsis:

 

Actions.RemoveParent(ActionId, ParentActionId)

 

Parameters:

 

ActionId: Integer. ID of the action from which the parent action is to be removed.

ParentActionId: Integer. ID of the parent action that will be removed from the parent list.

 

Required Rights:

 

Modify rights to the action defined in 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

 

Example Procedure:

 

iRet = SCApplication.Actions.AddParent(1234, iDiscussionForumId)