<?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/"><channel><title>mkalla さんの グループ アクティビティ</title><link>https://www.aras.com/community/members/mkalla</link><description>mkalla さんの グループ ユーザーの最近のアクティビティ</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>Hyper link with property value as form field</title><link>https://www.aras.com/community/f/community/6345/hyper-link-with-property-value-as-form-field</link><pubDate>Thu, 19 Sep 2019 06:52:29 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:ac0dced9-3e92-4b1c-ba2f-3df84f4260a9</guid><dc:creator>mkalla</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a form with two fields&lt;/p&gt;
&lt;p&gt;One is a text field AA where user enters a text &amp;quot;PC-1234&amp;quot;&lt;/p&gt;
&lt;p&gt;Then the other field shall after save be a hyperlink field containing &amp;quot;the web url&amp;quot;+field AA value&lt;/p&gt;
&lt;p&gt;&lt;a href="Http://webpageABC.com/PC1234"&gt;Http://webpageABC.com/PC1234&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;so user can click on the hyperlink and have the web page opened in a new window&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been looking around in some old post&amp;#39;s but not been able to solve it&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please help&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;//Mikael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Aras12 add a new Change relationship tab</title><link>https://www.aras.com/community/f/community/6519/aras12-add-a-new-change-relationship-tab</link><pubDate>Thu, 31 Oct 2019 08:01:07 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:402acf83-bb09-4dab-b990-0ba6c9dbbd64</guid><dc:creator>mkalla</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I just downloaded Aras12 and see that the part changes tab now relates to a Tree grid view and Query definition.&lt;/p&gt;
&lt;p&gt;Has anybody with Aras12 tested to create a new change tab and add correct relations?&lt;/p&gt;
&lt;p&gt;In Aras 12 &amp;quot;PE_Changes&amp;quot; query definition, they have been able to add Simple ECO&amp;#39;s etc, but I can&amp;#39;t figure out how.&lt;br /&gt;I cant see how they did that, due these references are not available as choices when trying to add them to my new query definition&lt;/p&gt;
&lt;p&gt;Regards//Mikael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>How to show more properties in Part - Changes tab</title><link>https://www.aras.com/community/f/community/6493/how-to-show-more-properties-in-part---changes-tab</link><pubDate>Thu, 24 Oct 2019 09:21:51 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:948cafdf-e037-46a0-bbce-59fb11135286</guid><dc:creator>mkalla</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;How can I show more properties (columns) in the Part - Changes tab.??&lt;/p&gt;
&lt;p&gt;Example: ECO/MCO... creation date&lt;/p&gt;
&lt;p&gt;I have tried modifying&lt;/p&gt;
&lt;p&gt;C:\Program Files (x86)\Aras\Innovator\Innovator\Client\Solutions\PLM\xml\ChangesGrid.xml&lt;/p&gt;
&lt;p&gt;and if I modify (add a header) in&lt;/p&gt;
&lt;p&gt;C:\Program Files (x86)\Aras\Innovator\Innovator\Client\Solutions\PLM\scripts\Changes\Changes.html&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the new column becomes visible on the part changes tab, but all changes are gone/ not visible&lt;br /&gt;If I remove the added header = my changes are visible again.&lt;/p&gt;
&lt;p&gt;Anyone knows how to fix this?&lt;/p&gt;
&lt;p&gt;Regards//Mikael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Restrict Workflow path to one Identity</title><link>https://www.aras.com/community/f/community/7987/restrict-workflow-path-to-one-identity</link><pubDate>Thu, 09 Jan 2020 07:12:15 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:246eea7e-05cd-4a8c-a203-5aa5c3409c6c</guid><dc:creator>mkalla</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In my work flow I have a stage with several path&amp;#39;s, one of them is called &amp;quot;Fast Track Approve&amp;quot;&lt;/p&gt;
&lt;p&gt;How can I set so that path only is valid for the CM /Admin identity?&lt;/p&gt;
&lt;p&gt;It would have been nice if Aras had possibilities to set permissions/Identities on path,&lt;/p&gt;
&lt;p&gt;But it looks like this must be solved by a method.&lt;/p&gt;
&lt;p&gt;So I need a method to check user vs identities and then have the method to be run as a pre-method for that path&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards//Mikael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>A feature idea: Image-reverse-lookup  / Image search</title><link>https://www.aras.com/community/f/community/8949/a-feature-idea-image-reverse-lookup-image-search</link><pubDate>Tue, 14 Jan 2020 13:50:46 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:73801044-4f1e-46e7-be69-4c73c78e3f71</guid><dc:creator>mkalla</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know if this is possible, but an idea...&lt;/p&gt;
&lt;p&gt;A common scenario is a person comes to me with a part in his hand and ask me&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;ldquo;&lt;em&gt;what is the part number of this part / in which assembly does this belong?&lt;/em&gt;&amp;rdquo;&lt;/p&gt;
&lt;p&gt;Almost impossible to answer on a single physical part&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How would it be if user could take a photo of the part, upload the photo to an Aras search and &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;get hits on corresponding parts by their images ?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I think that would be a great Aras functionality.&lt;/p&gt;
&lt;p&gt;Pinterest, Google photo and other search engines use the reverse-image-lookup feature&lt;/p&gt;
&lt;p&gt;Here is also a really nice article about it&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://www.hackevolve.com/building-a-reverse-image-search-engine/"&gt;https://www.hackevolve.com/building-a-reverse-image-search-engine/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Just a thought..&lt;/p&gt;
&lt;p&gt;Regards//Mikael&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Open Part document directly form Part</title><link>https://www.aras.com/community/f/community/8938/open-part-document-directly-form-part</link><pubDate>Mon, 13 Jan 2020 12:36:34 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:3f871448-d307-432c-b7a3-9a92f08afc0c</guid><dc:creator>mkalla</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have part documents in the Part -Documents tab&lt;/p&gt;
&lt;p&gt;But to see/open each document, I must open the Document, then open the the file&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/10/pastedimage1578918686727v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Would it be possible to change behavior so I can open the file directly from the part by just clicking on the Document Number&lt;/p&gt;
&lt;p&gt;Something like&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/10/pastedimage1578918902893v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Regards//Mikael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Aras12: can&amp;#39;t scroll code in Method window</title><link>https://www.aras.com/community/f/community/6591/aras12-can-t-scroll-code-in-method-window</link><pubDate>Tue, 19 Nov 2019 07:15:12 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:2c34e441-74f5-450e-90e7-024304d457a1</guid><dc:creator>mkalla</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m running Aras12 and in some windows (not all) the scroll does not work, no scroll bar is available&lt;/p&gt;
&lt;p&gt;Example is the Method windows where I can&amp;#39;t scroll to see the whole code.&lt;/p&gt;
&lt;p&gt;Does anybody else has this problem?&lt;/p&gt;
&lt;p&gt;Tested on Win10 and&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Edge (44.17763.1.0)&lt;/p&gt;
&lt;p&gt;Chrome (&lt;span&gt;78.0.3904.97)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards//Mikael&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Aras12 PartChanges tab, need to put back Start page and Parameters</title><link>https://www.aras.com/community/f/community/6528/aras12-partchanges-tab-need-to-put-back-start-page-and-parameters</link><pubDate>Mon, 04 Nov 2019 14:35:26 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:a4220c73-112c-443a-95c2-8737a51195ea</guid><dc:creator>mkalla</dc:creator><description>&lt;p&gt;In my trial of fixing some relationships in Aras12, I managed to delete&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the Relationship View in &amp;nbsp;RelationshipType &amp;ndash; Part Changes&lt;/p&gt;
&lt;p&gt;see picture:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/10/PartChanges.jpg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can anybody send me the link to start page and the parameters&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks//Mikael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Part Changes Tab: Add affected Part revision</title><link>https://www.aras.com/community/f/community/6498/part-changes-tab-add-affected-part-revision</link><pubDate>Fri, 25 Oct 2019 10:44:56 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:e46a9917-093b-4f09-a96e-ca2fac84c575</guid><dc:creator>mkalla</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;How can I show the part revisions (old rev , new rev) on Part changes tab on each ECO&lt;/p&gt;
&lt;p&gt;Today Part Changes tab shows&lt;/p&gt;
&lt;p&gt;Change Type, Number, Title, State&amp;nbsp;&lt;br /&gt;ECO, ECO-100001, &amp;quot;Eco about blabla&amp;quot;, Released&lt;/p&gt;
&lt;p&gt;I would like to see the Part revision that was affected by each ECO&lt;/p&gt;
&lt;p&gt;something like&amp;nbsp; for Part XX change tab&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Change Type, N&lt;/span&gt;&lt;span&gt;umber&lt;/span&gt;&lt;span&gt;, Title, State, &lt;span style="color:#ff0000;"&gt;Old rev, New rev&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;ECO, ECO-100001, &amp;quot;Eco about blabla&amp;quot;, Released,&lt;span style="color:#ff0000;"&gt; A, B&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;ECO, ECO-100002, &amp;quot;Eco about blabla&amp;quot;, Released, &lt;span style="color:#ff0000;"&gt;B, C&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;ECO, ECO-100003, &amp;quot;Eco about blabla&amp;quot;, Released, &lt;span style="color:#ff0000;"&gt;C, D&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I know this must be done in&amp;nbsp;&lt;/p&gt;
&lt;p&gt;C:\Program Files (x86)\Aras\Innovator\Innovator\Client\Solutions\PLM\xml\ChangesGrid.xml and&lt;br /&gt;C:\Program Files (x86)\Aras\Innovator\Innovator\Client\Solutions\PLM\scripts\Changes\Changes.html&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But can&amp;#39;t figure out how to point (get the relation) to the affected part revisions on each ECO since Changes.html refers to relation to the change type and not part info.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks for any help&lt;/p&gt;
&lt;p&gt;Regards//Mikael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Method to read file or text string to upload files to vault</title><link>https://www.aras.com/community/f/community/6461/method-to-read-file-or-text-string-to-upload-files-to-vault</link><pubDate>Fri, 18 Oct 2019 09:37:35 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:ccc66196-91e5-44a1-9452-da7023840de0</guid><dc:creator>mkalla</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am trying to upload several files to vault by a server side method.&lt;/p&gt;
&lt;p&gt;I have created the code below, but gives me error&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Line number -2, Error Number: CS0161, &amp;#39;PKG_MKTEST_A1_B14858DBCEA85CCE.ItemMethod.methodCode()&amp;#39;: not all code paths return a value&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I managed to load a single file to the vault&amp;nbsp; if I define&lt;/p&gt;
&lt;p&gt;&lt;span&gt;string filenam1 = &amp;quot;MKDOC13.docx&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;but if i want to loop&amp;nbsp; through a list of values to load corresponding file to the vault&lt;br /&gt; (tried values as here in the code and to read separate txt file etc), then&amp;nbsp;&lt;/span&gt;&lt;span&gt;I get the error above.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks for any help on this&lt;/p&gt;
&lt;p&gt;//Mikael&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;//MY CODE (MKTEST)&lt;/p&gt;
&lt;p&gt;var inn = this.newInnovator();&lt;/p&gt;
&lt;p&gt;var names = new List&amp;lt;string&amp;gt;() { &amp;quot;MKDOC14.docx&amp;quot;, &amp;quot;MKDOC15.docx&amp;quot; };&lt;/p&gt;
&lt;p&gt;foreach (string name in names)&lt;br /&gt;{string filenam1 = name;&lt;/p&gt;
&lt;p&gt;//string filenam1 = &amp;quot;MKDOC13.docx&amp;quot;; ------- THIS ONE WORK if I remove &amp;#39;var names...&amp;#39; and the &amp;#39;for each...&amp;#39; above&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;string filepath1 = @&amp;quot;C:\Aras\ARAS_Files\&amp;quot;+filenam1;&lt;/p&gt;
&lt;p&gt;string format = &amp;quot;Word&amp;quot;;&lt;br /&gt;string fileExtension = &amp;quot;docx&amp;quot;;&lt;/p&gt;
&lt;p&gt;string fileString = filenam1;&lt;/p&gt;
&lt;p&gt;// Check-in File to Aras Vault&lt;br /&gt;Item fileItem = inn.newItem(&amp;quot;File&amp;quot;, &amp;quot;add&amp;quot;);&lt;br /&gt;fileItem.setAttribute(&amp;quot;doGetItem&amp;quot;, &amp;quot;0&amp;quot;);&lt;br /&gt;fileItem.setProperty(&amp;quot;filename&amp;quot;, fileString);&lt;br /&gt;fileItem.attachPhysicalFile(filepath1);&lt;br /&gt;Item checkin_result = fileItem.apply();&lt;/p&gt;
&lt;p&gt;// Create new Document &lt;br /&gt;var docItem = inn.newItem(&amp;quot;Document&amp;quot;,&amp;quot;add&amp;quot;);&lt;br /&gt;docItem.setAttribute(&amp;quot;doGetItem&amp;quot;, &amp;quot;0&amp;quot;);&lt;br /&gt;string sequenceVal = inn.getNextSequence(&amp;quot;Default Document&amp;quot;); &lt;br /&gt;docItem.setAttribute(&amp;quot;useInputProperties&amp;quot;, &amp;quot;1&amp;quot;); &lt;br /&gt;docItem.setProperty(&amp;quot;item_number&amp;quot;, filenam1); //Docnumber&lt;br /&gt;docItem.setProperty(&amp;quot;name&amp;quot;, fileString ); //DocDescription same as pn&lt;br /&gt;docItem.setProperty(&amp;quot;description&amp;quot;, &amp;quot;This document was automatically generated.&amp;quot;);&lt;/p&gt;
&lt;p&gt;// Create new Relationship and attach File&lt;br /&gt;var relItem = inn.newItem(&amp;quot;Document File&amp;quot;,&amp;quot;add&amp;quot;);&lt;br /&gt;relItem.setAttribute(&amp;quot;doGetItem&amp;quot;, &amp;quot;0&amp;quot;);&lt;br /&gt;relItem.setProperty(&amp;quot;related_id&amp;quot;,fileItem.getID());&lt;br /&gt;docItem.addRelationship(relItem) ;&lt;br /&gt;var resultItem = docItem.apply();&lt;br /&gt;if (docItem.isError())&lt;br /&gt;{&lt;br /&gt; return inn.newError(&amp;quot;An error occured: &amp;quot; + docItem.getErrorDetail() ); &lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;var docId = resultItem.getID();&lt;br /&gt;return inn.newResult(docId); // id of new Document&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Set &amp;quot;Item has BOM&amp;quot;-indicator</title><link>https://www.aras.com/community/f/community/6370/set-item-has-bom--indicator</link><pubDate>Wed, 25 Sep 2019 11:21:55 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:c07879ba-f523-4291-a8d4-98381ad77655</guid><dc:creator>mkalla</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;To indicate that a Part has BOM or not I want to set a field (HasBOM) to 1 or 0&lt;/p&gt;
&lt;p&gt;I have below server side code&amp;nbsp; triggered on onBeforeAdd and&amp;nbsp; OnBeforeUpdate on the Part item type&lt;/p&gt;
&lt;p&gt;It works,&lt;/p&gt;
&lt;p&gt;But I have to press save twice!? to have the field updated after I removed or added a BOM, &lt;br /&gt;is there a way to have it updated directly on save???&lt;/p&gt;
&lt;p&gt;Thanks for any idea&lt;/p&gt;
&lt;p&gt;//Mikael&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;// Method to check if item has BOM and set HasBOM &amp;quot;&lt;/p&gt;
&lt;p&gt;Innovator inn = this.getInnovator(); &lt;br /&gt; string issueID = this.getProperty(&amp;quot;source_id&amp;quot;,&amp;quot;&amp;quot;);&lt;/p&gt;
&lt;p&gt;Item updatedBOM = inn.applyAML( &amp;quot;&amp;lt;AML&amp;gt;&amp;quot; + &amp;quot; &amp;lt;Item type=&amp;#39;Part BOM&amp;#39; action=&amp;#39;get&amp;#39; select=&amp;#39;related(item_number)&amp;#39;&amp;gt;&amp;quot; + &amp;quot; &amp;lt;source_id&amp;gt;&amp;quot; + this.getID() + &amp;quot;&amp;lt;/source_id&amp;gt;&amp;quot; + &amp;quot; &amp;lt;related_id&amp;gt;&amp;quot; + &amp;quot; &amp;lt;Item&amp;gt;&amp;quot; + &amp;quot; &amp;lt;/Item&amp;gt;&amp;quot; + &amp;quot; &amp;lt;/related_id&amp;gt;&amp;quot; + &amp;quot; &amp;lt;/Item&amp;gt;&amp;quot; + &amp;quot;&amp;lt;/AML&amp;gt;&amp;quot;); &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;if (updatedBOM.getItemCount() &amp;gt; 0)&lt;/p&gt;
&lt;p&gt;{ &lt;br /&gt;this.setProperty(&amp;quot;hasbom&amp;quot;, &amp;quot;1&amp;quot;);&lt;br /&gt;} &lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt; this.setProperty(&amp;quot;hasbom&amp;quot;, &amp;quot;0&amp;quot;);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;return this;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Ask A Question I</title><link>https://www.aras.com/community/achievements/460ac7df-7ccc-4c42-a204-9e05eef3be09</link><pubDate>Thu, 26 Sep 2019 05:38:50 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:f2655f81-0361-4245-b27b-ebe8869e87da</guid><dc:creator /><description>Ask a question in a forum.</description></item><item><title>Dynamic workflow, set assigned id based on drop down list</title><link>https://www.aras.com/community/f/community/6307/dynamic-workflow-set-assigned-id-based-on-drop-down-list</link><pubDate>Tue, 10 Sep 2019 12:47:58 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:518dbcc5-5f04-4179-85f8-22d6b3753903</guid><dc:creator>mkalla</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am new with C#&lt;/p&gt;
&lt;p&gt;I am trying to read an ECO form drop down list value (manufsites) and then based on that add corresponding identity as assigned.&lt;/p&gt;
&lt;p&gt;I can without the IF statement set the identities as assigned, &lt;br /&gt;but when try to read my drop down list value it does not work,&lt;/p&gt;
&lt;p&gt;any ideas, please help&lt;/p&gt;
&lt;p&gt;my code:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;// Called OnActivate from activities in the Simple Change workflow. Adds assignments to&lt;br /&gt;// the activity based on the Owner or Manager of affected items&lt;/p&gt;
&lt;p&gt;Innovator inn = this.getInnovator();&lt;br /&gt;string actId = this.getID();&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;// Retrieve the workflow item&lt;br /&gt;Item wflItem = this.newItem(&amp;quot;Workflow&amp;quot;,&amp;quot;get&amp;quot;);&lt;br /&gt;wflItem.setAttribute(&amp;quot;select&amp;quot;,&amp;quot;source_id,source_type&amp;quot;);&lt;/p&gt;
&lt;p&gt;Item wflProc = wflItem.createRelatedItem(&amp;quot;Workflow Process&amp;quot;,&amp;quot;get&amp;quot;);&lt;br /&gt;wflProc.setAttribute(&amp;quot;select&amp;quot;,&amp;quot;name&amp;quot;);&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Item wflProcAct = wflProc.createRelationship(&amp;quot;Workflow Process Activity&amp;quot;,&amp;quot;get&amp;quot;);&lt;br /&gt;wflProcAct.setAttribute(&amp;quot;select&amp;quot;,&amp;quot;related_id&amp;quot;);&lt;br /&gt;wflProcAct.setProperty(&amp;quot;related_id&amp;quot;,this.getID());&lt;br /&gt;wflItem = wflItem.apply();&lt;br /&gt;if (wflItem.getItemCount() != 1 || &lt;br /&gt; wflItem.getProperty(&amp;quot;source_id&amp;quot;,&amp;quot;&amp;quot;).Length != 32 || &lt;br /&gt; wflItem.getPropertyAttribute(&amp;quot;source_type&amp;quot;,&amp;quot;keyed_name&amp;quot;,&amp;quot;&amp;quot;).Length &amp;lt; 1)&lt;br /&gt;{&lt;br /&gt; return inn.newError(&amp;quot;Error retrieving workflow: &amp;quot;+wflItem.getErrorDetail());&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;Item q = this.newItem();&lt;br /&gt;q.loadAML(&amp;quot;&amp;lt;Item type=&amp;#39;Activity Assignment&amp;#39; action=&amp;#39;get&amp;#39; select=&amp;#39;id&amp;#39;&amp;gt;&amp;lt;source_id&amp;gt;&amp;quot;+this.getAttribute(&amp;quot;id&amp;quot;)+&amp;quot;&amp;lt;/source_id&amp;gt;&amp;lt;/Item&amp;gt;&amp;quot;);&lt;br /&gt;q = q.apply();&lt;br /&gt;if (q.getItemCount()&amp;gt;0) return this;//The activity is reactivated.&lt;/p&gt;
&lt;p&gt;bool permissionWasSet = false;&lt;br /&gt;Aras.Server.Security.Identity transIdentity = Aras.Server.Security.Identity.GetByName(&amp;quot;Aras PLM&amp;quot;);&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt; permissionWasSet = Aras.Server.Security.Permissions.GrantIdentity(transIdentity);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;//GET the manufsite from the manufs drop down list ------------&lt;/p&gt;
&lt;p&gt;string ManufSit = wflItem.getProperty(&amp;quot;manufsites&amp;quot;);&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; if (ManufSit== &amp;quot;aaaa&amp;quot;)&lt;/p&gt;
&lt;p&gt;//IF I remove the IF row above, then below Identity is set correctly (note fictive values in this example)&lt;/p&gt;
&lt;p&gt;{&lt;br /&gt; string identId = &amp;quot;xxxxxxxxxxxx&amp;quot;;&lt;br /&gt; Item assignment = this.newItem(&amp;quot;Activity Assignment&amp;quot;, &amp;quot;&amp;quot;);&lt;br /&gt; assignment.setAction(&amp;quot;add&amp;quot;);&lt;br /&gt; assignment.setProperty(&amp;quot;source_id&amp;quot;, actId);&lt;br /&gt; assignment.setPropertyAttribute(&amp;quot;locked_by_id&amp;quot;,&amp;quot;is_null&amp;quot;,&amp;quot;1&amp;quot;);&lt;br /&gt; assignment.setProperty(&amp;quot;related_id&amp;quot;,identId);&lt;br /&gt; assignment.setProperty(&amp;quot;voting_weight&amp;quot;, &amp;quot;50&amp;quot;);&lt;br /&gt; assignment.setProperty(&amp;quot;is_required&amp;quot;, &amp;quot;1&amp;quot;);&lt;br /&gt; assignment = assignment.apply();&lt;br /&gt; if (assignment.getItemCount() != 1) return inn.newError(&amp;quot;Error creating assignment: &amp;quot;+assignment.getErrorDetail());&lt;br /&gt; &lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt; if (ManufSit== &amp;quot;bbbb&amp;quot;)&lt;br /&gt; {&lt;br /&gt; string identId = &amp;quot;yyyyyyyyyyy&amp;quot;;&lt;br /&gt; Item assignment = this.newItem(&amp;quot;Activity Assignment&amp;quot;, &amp;quot;&amp;quot;);&lt;br /&gt; assignment.setAction(&amp;quot;add&amp;quot;);&lt;br /&gt; assignment.setProperty(&amp;quot;source_id&amp;quot;, actId);&lt;br /&gt; assignment.setPropertyAttribute(&amp;quot;locked_by_id&amp;quot;,&amp;quot;is_null&amp;quot;,&amp;quot;1&amp;quot;);&lt;br /&gt; assignment.setProperty(&amp;quot;related_id&amp;quot;,identId);&lt;br /&gt; assignment.setProperty(&amp;quot;voting_weight&amp;quot;, &amp;quot;50&amp;quot;);&lt;br /&gt; assignment.setProperty(&amp;quot;is_required&amp;quot;, &amp;quot;1&amp;quot;);&lt;br /&gt; assignment = assignment.apply();&lt;br /&gt; if (assignment.getItemCount() != 1) return inn.newError(&amp;quot;Error creating assignment: &amp;quot;+assignment.getErrorDetail());&lt;br /&gt; &lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; &lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;finally&lt;br /&gt;{&lt;br /&gt; if (permissionWasSet)&lt;br /&gt; {&lt;br /&gt; Aras.Server.Security.Permissions.RevokeIdentity(transIdentity);&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;return this;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Discussion Starter I</title><link>https://www.aras.com/community/achievements/21025ab1-febb-4fb4-a872-d32a921cb45c</link><pubDate>Wed, 11 Sep 2019 06:53:18 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:e3ee96f5-317d-4a40-8963-c034a8ee96c5</guid><dc:creator /><description>Start a discussion in a forum that receives 5 replies.</description></item></channel></rss>