ECO Validation
Good day all. I am trying to set up a validation (C#) for a field to make sure it is completed before moving to the next step in the Workflow Process. I have seen some information for validating a checkbox in C# and some form of validation with VB (I don't know VB). I can't seem to get this to work. The coding I have tried either stop everything or don't stop anything. I added the method to the Workflow Map Path as a Pre Method. I would appreciate any help with identifying what I have missed. Thank you. Change Request - sm_DEMO_NDR (it is a testing ground for me) Property - sm_change_end_state Innovator inn = this.getInnovator(); Item controlledItem = this.apply("s_Get Controlled Item"); string is_completed = controlledItem.getProperty("sm_change_end_state"); if (is_completed =="") return inn.newError("Must be complete!"); return this; Innovator inn = this.getInnovator(); // Set up the query Item. Item qryItem = this.newItem("sm_DEMO_NDR","get"); qryItem.setAttribute("select","sm_change_end_state"); //qryItem.setID(endState); if (qryItem = "") return inn.newError("Please select appropriate End State."); return this; Innovator inn = this.getInnovator(); Item endState = this.newItem("sm_DEMO_NDR","get"); string state = endState.getProperty("select","sm_change_end_state"); if (this.endState == "") {return inn.newError("Please select appropriate End State.");};Solved3.5KViews0likes2CommentsJS event when ECO form is saved?
Hi, Is it possible to listen to some kind of event to know when the ECO form has been saved? I have an HTML field in the ECO form, where I have put a <script> tag with JavaScript code within. I want that code to execute again after the form has been saved. Is that possible?2.3KViews0likes1CommentReverting revision in ECO process
Hello all, I am currently looking for a solution , that would revert revision of affected item if the change process has been denied at some point. i.e new ECO has been issued, new revision for itemtype "Part" has been made A -> B, changes to BOM have been made, on next activity due to some special cause approval of changes has been denied. This should return affected item to it's previous state , revision A. Is anyone aware of a method, that would solve this issue? Some help would be very appreciated. Thanks! Eimantas1.8KViews0likes1CommentHow to find ECR, ECO, EDR associated with PR using API GET call?
Hi, I need the data for all the PRs and ECR, ECO, EDR etc associated with the PR. By associated I mean the ones that show in the "where used" section of PR and not the relationships. In other words, what is the "where used' equivalent in a GET call? I then need the properties of the Affected Items under each ECR, ECO, EDR. I can get the properties of the relationshipships. GET call in Postman: https://nmg.dev.aras-cloud.com/staging/server/odata/PR?$expand=NMG_PR_AffectedItem This only gets the Affected Items under PR, I can get other relationships and their properties but the issue is there isn't a relationship between PR and ECR under PR item typeSolved0Views0likes2Comments