Last active
January 26, 2016 19:56
-
-
Save Microsofttechies/8c7e77ee150fe79a334a to your computer and use it in GitHub Desktop.
Aras Innovator sample AML and IOM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| This is an example of a BOM in AML language: | |
| <Item type="Part" action="add"> | |
| <item_number>999-888</item_number> | |
| <description>Some Assy</description> | |
| <Relationships> | |
| <Item type="Part BOM" action="add"> | |
| <quantity>10</quantity> | |
| <related_id> | |
| <Item type="Part" action="add"> | |
| <item_number>123-456</item_number> | |
| <description>1/4w 10% 10K Resistor</description> | |
| </Item> | |
| </related_id> | |
| </Item> | |
| </Relationships> | |
| </Item> | |
| The following is a Method in JavaScript using the IOM that is the same as the AML | |
| BOM example above: | |
| var innovator = new Innovator(); | |
| var partItem = innovator.newItem("Part","add"); | |
| partItem.setProperty("item_number", "999-888"); | |
| partItem.setProperty("description", "Some Assy"); | |
| var bomItem = innovator.newItem("Part BOM","add"); | |
| bomItem.setProperty("quantity", "10"); | |
| var relatedItem = new Item("Part","add"); | |
| relatedItem.setProperty("item_number", "123-456"); | |
| relatedItem.setProperty("description", "1/4w 10% 10K Resistor"); | |
| bomItem.setRelatedItem(relatedItem); | |
| partItem.addRelationship(bomItem) ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment