Repository.Xfmea.AssignActionToXfmeaCause Method

Assigns an action to a cause. Returns a Boolean value; when true, indicates the action was assigned successfully.

Syntax
.Xfmea.AssignActionToXfmeaCause(ActionID, CauseID)

Parameters
Action ID
 * Required. The Action ID of the action that is to be assigned to the cause.

Cause ID
 * Required. The Cause ID of the cause to which the action is to be assigned.

Example
VBA|VB.NET MyRepository Repository MyRepository.ConnectToAccessRepository MyFunction XfmeaFunction Actions cAction MyRepository.Project.SetCurrentProject(1) Actions = MyRepository.Action.GetAllActions Causes cCause Causes = MyRepository.Xfmea.GetAllXfmeaCauses(1) bOK Boolean bOK = MyRepository.Xfmea.AssignActionToXfmeaCause(Actions(0), Causes(0))