<?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>How to copy a file item when updating</title><link>https://www.aras.com/community/f/development/3672/how-to-copy-a-file-item-when-updating</link><description>I created item type &amp;quot;myitem&amp;quot; with viewable_file and native_file like Itemtype &amp;quot;CAD&amp;quot;. Then, when saving &amp;quot;myitem&amp;quot;, I created a method to copy viewable_file to native_file, but it does not work. Could you tell me how to do it?

I would like to do the following</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to copy a file item when updating</title><link>https://www.aras.com/community/thread/1525?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 09:30:16 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:eb13122c-2755-4827-88d2-cf365a4a049c</guid><dc:creator>Former Member</dc:creator><description>Hi Chris.

The viewable_file and the native_file should not be the same item.
After copying, convert the viewable_file to another format in the method and replace the original viewable_file. At this time, the native_file and the viewable_file will be different.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to copy a file item when updating</title><link>https://www.aras.com/community/thread/1524?ContentTypeID=1</link><pubDate>Tue, 01 May 2018 09:58:35 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:67d79556-b7a7-45c8-b720-ece691403d3e</guid><dc:creator>Christopher Gillis</dc:creator><description>Hi Sam,

If you are just trying to get the viewable_file to always be the same as the native_file, you could make viewable_file a Foreign property and point it to the ID of the native_file property. This would ensure that the properties both always point to the same file without needing to use a server event.

Would this work for your use case or are you should these two properties be the same only under certain situations?

Chris

&lt;hr /&gt;

Christopher Gillis

Aras Labs Software Engineer&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>