Hello,
I written this method to unlock all item in one itemtype.And attached it on system event on logout.But I want to modify it and want to create method for unlocking all items in all the ItemTypes.What changes should I make to this method?
Innovator inn = this.getInnovator();
string aml = "<AML>"+
"<Item type='Design request' action='get'><locked_by_id>"+inn.getUserID()+"</locked_by_id>"+
"</Item>"+
"</AML>";
Item itm = inn.applyAML(aml);
for(int i=0; i<itm.getItemCount(); i++)
{
Item Obj =itm.getItemByIndex(i);
Obj.unlockItem();
}
return this;
Hello,
Rather than creating your own method, you could take advantage of built-in functionality that accomplishes this exact use case. Please follow the steps below to enable this.
Login as an administrator
Navigate to TOC > Administration > ItemTypes
Search for and open Design Request (or whatever other ItemType you want to unlock on logout)
Lock this ItemType
In the box of options at the right of the form, check the Unlock On Logout option
Save, Unlock, and Close this ItemType
This will automatically unlock any Items a user has been working on each time they logout of Aras Innovator.
Chris
Christopher Gillis
Aras Labs Software Engineer
Hello,
Rather than creating your own method, you could take advantage of built-in functionality that accomplishes this exact use case. Please follow the steps below to enable this.
Login as an administrator
Navigate to TOC > Administration > ItemTypes
Search for and open Design Request (or whatever other ItemType you want to unlock on logout)
Lock this ItemType
In the box of options at the right of the form, check the Unlock On Logout option
Save, Unlock, and Close this ItemType
This will automatically unlock any Items a user has been working on each time they logout of Aras Innovator.
Chris
Christopher Gillis
Aras Labs Software Engineer