Forum Discussion
Andreas_S_
8 years agoIdeator III
Hi Angela,
I do not know if I understood you correctly but maybe this (from Aras Programmer's Guide) could help you:
4.1 Item Actions Extend the Item Class
One purpose for Methods is to extend the Item Class. Methods extend the Item Class when they are bound as the related Item for ‘Item Action’ relationships on the ItemType. In the AML the Method name is the action attribute name for the Item tag.
<Item type="My ItemType" action="My Method" id="…"/>
The Method could be called using the IOM like this (all three examples below are equivalent and are written in C#):
1) Item myItem = this.newItem("My ItemType", "My Method");
myItem.setID(this.getID());
Item results = myItem.apply();
2) Item myItem = this.newItem("My ItemType");
myItem.setID(this.getID());
Item results = myItem.apply("My Method");
3) Item myItem = this.newItem();
myItem.setID(this.getID());
myItem.setType("My ItemType");
myItem.setAction("My Method");
Item results = myItem.apply();