Forum Discussion
christopher_gillis
8 years agoCommunity Manager
Hello,
Could you please include which version of Aras Innovator you are using? I ran a quick test in 11.0 SP12, and found that the onInsertRow event was called individually for each relationship even if I added multiple Parts at once.
Additionally, you can more directly check for the state of the related part by using the sample below.
Christopher Gillis Aras Labs Software Engineer
var relatedNd = parent.thisItem.node.selectSingleNode("//Item[@id='" + relatedID + "']");
var relatedState = aras.getItemProperty(relatedNd, "state");
if (relatedState == "Preliminary") {
// Run additional logic here
}
Chris
Christopher Gillis Aras Labs Software Engineer