Editability API

This topic describes the editability limitation API.

This page discusses:

See Also
Workflow for Setting up the Environment for Public API to Customize Analyses
About Customization of Analyses with Scripts
About Script Creation

getLimitEditabilityVote

getLimitEditabilityVote corresponds to a method used to compute the editability limitation vote for the elements defined in parameters.

getLimitEditabilityVote(
  fmea: FailureModesEffectsAnalysisProxyInterface, 
  causalityRelationship: CausalityRelationshipProxyInterface | undefined, 
  dataIndex: DataIndexType | undefined, 
  targetDataIndex: DataIndexType | undefined
): Promise<boolean | undefined>;
Parameters
fmea: A FailureModesEffectsAnalysisProxyInterface representing the failure modes effects analysis containing the element.
causalityRelationship: A CausalityRelationshipProxyInterface representing the causality relationship containing the element.
dataIndex: A DataIndexType representing the dataindex of the editor.
targetDataIndex: A DataIndexType representing the targetdataindex of the editor.
Return Value
Returns the limitation vote or undefined, if the specified element is not found.

setLimitEditabilityVote

setLimitEditabilityVote corresponds to a method used to cast the editability limitation vote for the element defined in parameter.

setLimitEditabilityVote(
  fmea: FailureModesEffectsAnalysisProxyInterface, 
  causalityRelationship: CausalityRelationshipProxyInterface | undefined, 
  dataIndex: DataIndexType | undefined, 
  targetDataIndex: DataIndexType | undefined, 
  editableStatus: boolean
): Promise<void>;
Parameters
fmea: A FailureModesEffectsAnalysisProxyInterface containing the element for which an editability limitation vote is to be cast.
causalityRelationship: A CausalityRelationshipProxyInterface containing the element for which an editability limitation vote is to be cast.
dataIndex: A DataIndexType representing the dataindex of the editor for which an editability limitation vote is to be cast.
targetDataIndex: A DataIndexType representing the targetdataindex of the editor for which an editability limitation vote is to be cast.
editableStatus: Corresponds to the limitation vote for the element. The true value prevents the editing and the false value allows the editing.
Return Value
Returns a Boolean.