Methods

Innovator inn = this.getInnovator(); String AML=”<AML><Item type=’Design_request’ action=’unlock’ id=’43B44552B03543779386795B2F66D525′></Item></AML>”; Item result = inn.applyAML(AML); return this; I want to update this method to unlock Items in Design request Itemtype when Innovator admin logout.
  • Hi Angela, There are a couple different ways you could accomplish this. The first way is to set the "Unlock on Logout" flag on the Design Request ItemType. You can find this in the top-rightmost box of the ItemType form. This will unlock any Design Request items that any user has locked when they logout. If you're trying to limit this functionality to only the Innovator Admin, you can accomplish this by first creating a Method with the code below. You'll need to change the type in the AML to Design Request instead of Part. You can then create a System Event to call this method every time a user logs out.
    1. Navigate to TOC > Administration > System Events > System Events
    2. Create a new System Event
    3. Set the Event Type to Logout
    4. Create a new System Event Handler relationship to your Method
    5. Save, Unlock, and Close the System Event
    Now each time the Innovator Admin logs out, only the Design Requests that the admin has locked will be unlocked. Chris ___________________________________ Christopher Gillis Aras Labs Software Engineer
  • Can unlock items for this item type by using same solution.
  • Is there any alternative way to write method for same problem? I tried your solution for my Itemtype but when I logout from innovator there is no effect on Item.
  • Hello, Could you try to apply this AML directly through Nash (append /Client/scripts/nash.aspx to end of your usual login URL) or AML Studio? Is there an error being thrown when you run this AML directly? Chris ____________________________________ Christopher Gillis Aras Labs Software Engineer