|
||
Revision history:
Introduced in QPR 7.5.1
Adds a parent action to the parent list of an action.
Synopsis:
Actions.AddParent(ActionId, ParentActionId)
Parameters:
ActionId: Integer. ID of the action for which a parent is to be added.
ParentActionId: Integer. ID of the new parent action. In the case you want to add an action under the Discussion Forum, use 1 as the ID.
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
Example Procedure:
iRet = SCApplication.Actions.AddParent(1234, iDiscussionForumId)