<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Methods</title><link>https://www.aras.com/community/f/development/3535/methods</link><description>Innovator inn = this.getInnovator();
String AML=”&amp;lt;AML&amp;gt;&amp;lt;Item type=’Design_request’ action=’unlock’ id=’43B44552B03543779386795B2F66D525′&amp;gt;&amp;lt;/Item&amp;gt;&amp;lt;/AML&amp;gt;”;
Item result = inn.applyAML(AML);
return this;


I want to update this method to unlock Items in Design</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Methods</title><link>https://www.aras.com/community/thread/1221?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2018 16:53:36 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:a33b8302-2b83-44a7-946d-9ef3b3c3b58c</guid><dc:creator>Christopher Gillis</dc:creator><description>Hello,

Could you try to apply this AML directly through Nash (append &lt;code&gt;/Client/scripts/nash.aspx&lt;/code&gt; 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&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Methods</title><link>https://www.aras.com/community/thread/1219?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2018 04:54:49 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:026e72af-4027-47ab-9e79-1a5c9a5b706a</guid><dc:creator>Tejaswini</dc:creator><description>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.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Methods</title><link>https://www.aras.com/community/thread/1215?ContentTypeID=1</link><pubDate>Mon, 15 Jan 2018 12:09:42 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:9053870e-21cb-4024-8340-84fdd12d11cb</guid><dc:creator>Tejaswini</dc:creator><description>Can unlock items for this item type by using same solution.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Methods</title><link>https://www.aras.com/community/thread/1210?ContentTypeID=1</link><pubDate>Mon, 15 Jan 2018 10:19:57 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:cc81cb8b-4fa3-4559-b4f0-7a61102cb708</guid><dc:creator>Christopher Gillis</dc:creator><description>Hi Angela,

There are a couple different ways you could accomplish this. The first way is to set the &amp;quot;Unlock on Logout&amp;quot; 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&amp;#39;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&amp;#39;ll need to change the &lt;strong&gt;type&lt;/strong&gt; 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.
&lt;ol&gt;
 	&lt;li&gt;Navigate to &lt;strong&gt;TOC &amp;gt; Administration &amp;gt; System Events &amp;gt; System Events&lt;/strong&gt;&lt;/li&gt;
 	&lt;li&gt;Create a new System Event&lt;/li&gt;
 	&lt;li&gt;Set the Event Type to Logout&lt;/li&gt;
 	&lt;li&gt;Create a new System Event Handler relationship to your Method&lt;/li&gt;
 	&lt;li&gt;Save, Unlock, and Close the System Event&lt;/li&gt;
&lt;/ol&gt;
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&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>