myusufm - Tuesday, December 17, 2013 4:54 AM:
I understand that batch upload of part is possible with Nash along with class details etc.
Is it possible to include the information on cost as well (target, estimate, actual?)
i tried to find any related post but can't find any.
Thanks.
myusufm - Monday, December 23, 2013 4:04 AM:
At last i could update the cost using below after numerous tries
<AML>
<Item type="Part Goal" action="add">
<source_id>
<Item type='Part' action='get'>
<item_number>12345</item_number>
</Item>
</source_id>
<goal>Cost</goal>
<estimated_value>999</estimated_value>
</Item>
</AML>
But, the parts does not automatically updated. I need to manually lock and unlock the part before the cost being updated. Anyone can inform me why and teach me the correct method.
vasant - Monday, December 23, 2013 5:19 AM:
Hi there,
You can write AML as:
<AML>
<Item type="Part" action="edit" where="[Part].item_number='12345'">
<Relationships>
<Item type="Part Goal" action="add">
<goal>Cost</goal>
<estimated_value>999</estimated_value>
</Item>
</Relationships>
</Item>
</AML>
Its due to, while adding Relationship Type Item directly, Aras does not fires the Methods written on Part "OnAfterUpdate" Event.
Thanks - Vasant
myusufm - Thursday, December 26, 2013 10:24 PM:
Thanks! that works!