Repository.Xfmea.AddXfmeaCause Method

Adds a new cause to an FMEA effect. Returns a Boolean value; when true, indicates a successful save.

Syntax
.Xfmea.AddXfmeaCause(Cause, EffectID)

Parameters
Cause
 * Required. The XfmeaCause object to be added.

EffectID
 * Required. Integer. The record ID of FMEA effect to add the cause to.

Example
This example assumes that FMEAs exist in a repository. It creates a new cause, and then saves it to one of the FMEA effects in the repository. VBA MyRepository Repository ACause XfmeaCause ACause.Dsc = MyRepository.Project.SetCurrentProject(1) MyRepository.Xfmea.AddXfmeaCause(ACause,1)

VB.NET MyRepository Repository ACause XfmeaCause ACause.Dsc = MyRepository.Project.SetCurrentProject(1) MyRepository.Xfmea.AddXfmeaCause(ACause,1)