<?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>jtensmeyer さんの グループ アクティビティ</title><link>https://www.aras.com/community/members/jtensmeyer</link><description>jtensmeyer さんの グループ ユーザーの最近のアクティビティ</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>Remove certain property values onAfterVersion an Item</title><link>https://www.aras.com/community/f/development/3997/remove-certain-property-values-onafterversion-an-item</link><pubDate>Thu, 25 Oct 2018 11:41:37 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:7490ba81-4859-408d-b941-513e80b5592e</guid><dc:creator>AngelaIp</dc:creator><description>Hi,

this one sounds like an easy to do task, but it´s somehow not. I want to reset certain ERP related properties after creating a new generation of a Part.

My idea was to use a simple onAfterVersion Method for this task:
&lt;pre&gt;&lt;code&gt;innnovator inn=this.getInnovator();

string partConfigId=this.getProperty(&amp;quot;config_id&amp;quot;);
string itemType=this.getType();

// Get newest version of this Part
Item newPart = this.newItem(&amp;quot;Part&amp;quot;,&amp;quot;get&amp;quot;);
newPart.setProperty(&amp;quot;config_id&amp;quot;, this.getProperty(&amp;quot;config_id&amp;quot;));
newPart.setProperty(&amp;quot;is_current&amp;quot;,&amp;quot;1&amp;quot;);
newPart.setAttribute(&amp;quot;select&amp;quot;, &amp;quot;id&amp;quot;);
newPart = newPart.apply();
if (newPart.isError())
{
    return inn.newError(&amp;quot;Keine neue Revision gefunden: &amp;quot; + newPart.getErrorDetail() ); 
} 
string newId = newPart.getID(); // works!

// Edit newest version of this item
Item editPart = inn.getItemById(&amp;quot;Part&amp;quot;, newId);
editPart.setAction(&amp;quot;edit&amp;quot;);
editPart.setAttribute(&amp;quot;doGetItem&amp;quot;, &amp;quot;0&amp;quot;);
editPart.setProperty(&amp;quot;erp_is_matched&amp;quot;,&amp;quot;0&amp;quot;);
editPart.removeProperty(&amp;quot;erp_variant&amp;quot;);
editPart = editPart.apply();&lt;/code&gt;&lt;/pre&gt;
 

Unfortunately this code doesn´t update any value of the newest Part version.  Even applySQL or grant of special permission doesn´t change anything.

My only remaining idea is to customize related Methods like PE_CreateNewRevision and the transition handlers...again..
Is there some more general option available to change values after versioning an Item programatically?

Best regards,
Angela&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>call client method from sevrer</title><link>https://www.aras.com/community/f/development/3794/call-client-method-from-sevrer</link><pubDate>Mon, 28 May 2018 07:04:32 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:e3ceb82c-ead2-4565-8b14-9711c1e3f185</guid><dc:creator>Kara</dc:creator><description>How can i call client method from server?

&amp;nbsp;

&amp;nbsp;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>What does SelectFile return?</title><link>https://www.aras.com/community/f/development/3601/what-does-selectfile-return</link><pubDate>Thu, 22 Feb 2018 17:26:11 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:780b7658-fc31-4aed-ae30-8ef702d8899c</guid><dc:creator>jtensmeyer</dc:creator><description>Hello,

I have what is probably a simple answer, but it is sure eluding me.  I am simply trying to process the return from SelectFile.  In this case I am loading it into a text field on the parent form.  Every sample I have found simply treats it as a returned var or string.  However, all I can see in the debugger and what gets returned into the text field is [object Object], so its an object not a string.  Am I supposed to do something else with it?

Here is my onClick client method:

var filePath = top.aras.vault.SelectFile();
if (filePath === undefined || filePath === &amp;#39;&amp;#39;){
return false;
}

//Set value on form element
document.getElementById(&amp;quot;MainDataForm&amp;quot;).dataFile.value = filePath.toString();

//  also tried this:  document.getElementById(&amp;quot;MainDataForm&amp;quot;).dataFile.value = filePath;

return this;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>