vishnu - Friday, April 16, 2010 1:12 AM:
I have created a server side method (onAfterAdd) to update a value in one of the field. Once the part object is created attribute value is updated by server side method, but the issue is object created, it is unlocked.
If I create a part without the server side method, object is locked once it is created.
Why the object is unlocked after execution of server side method?
I want the object to be locked after its creation.
RobMcAveney - Friday, April 16, 2010 1:24 AM:
If you are trying to set the value of a property based on the value of other properties, it is usually better to do that OnBeforeAdd. That way you are simply modifying the Add request before it gets to the server and there should be no locking issue. If you think it's necessary to do it OnAfterAdd, please provide some sample code so we can figure out why the item is unlocked.
vishnu - Friday, April 16, 2010 2:38 AM:
Hi Rob,
That worked..
Thanks for the help.