<?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>Setting an default image in part master creation?</title><link>https://www.aras.com/community/f/development/3639/setting-an-default-image-in-part-master-creation</link><description>Hi expert,

Would you help one thing?

I try to set default image when new part is created or existing part is saved without an selected image.

So, I created server side code(C#) as below.

this.setProperty(&amp;quot;thumbnail&amp;quot;, &amp;quot;&amp;lt;thumbnail&amp;gt;.././customer/images</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Setting an default image in part master creation?</title><link>https://www.aras.com/community/thread/1458?ContentTypeID=1</link><pubDate>Tue, 27 Mar 2018 17:55:22 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:b4186c93-33de-4ed0-9f38-970afaab7eb2</guid><dc:creator>Joseph An</dc:creator><description>Hi Chris,

It works.

Thank you.

Joseph.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting an default image in part master creation?</title><link>https://www.aras.com/community/thread/1453?ContentTypeID=1</link><pubDate>Mon, 26 Mar 2018 18:52:22 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:0966668d-2cba-4224-aa21-3ec7628d627b</guid><dc:creator>Joseph An</dc:creator><description>Hi Chris,

Thank you so much for your answer.

I will check whether the file exists in the database or not.

Joseph.

&amp;nbsp;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting an default image in part master creation?</title><link>https://www.aras.com/community/thread/1452?ContentTypeID=1</link><pubDate>Mon, 26 Mar 2018 10:33:16 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:23c14a27-2bc2-4873-bbbb-f2c9de51ff12</guid><dc:creator>Christopher Gillis</dc:creator><description>Hello,

Your second attempt of manually setting the image property using &lt;code&gt;this.setProperty(&amp;quot;thumbnail&amp;quot;, &amp;quot;vault:///?fileId=70508FF9A9744C79AD4E7608342E537F&amp;quot;);&lt;/code&gt; should work so long as the file already exists in the database. I would also recommend this approach, so you don&amp;#39;t end up with many duplicates of the same file in your vault each time a new part is created.

Could you please clarify what kind of server event you are calling this Method from as well as the version of Aras Innovator that you are using?

Chris

&lt;hr /&gt;

Christopher Gillis

Aras Labs Software Engineer&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting an default image in part master creation?</title><link>https://www.aras.com/community/thread/1451?ContentTypeID=1</link><pubDate>Mon, 26 Mar 2018 10:33:14 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:6ded84e5-1e74-4976-b9b1-bd3c28e7065c</guid><dc:creator>Christopher Gillis</dc:creator><description>Hello,

Your second attempt of manually setting the image property using &lt;code&gt;this.setProperty(&amp;quot;thumbnail&amp;quot;, &amp;quot;vault:///?fileId=70508FF9A9744C79AD4E7608342E537F&amp;quot;);&lt;/code&gt; should work so long as the file already exists in the database. I would also recommend this approach, so you don&amp;#39;t end up with many duplicates of the same file in your vault each time a new part is created.

Could you please clarify what kind of server event you are calling this Method from as well as the version of Aras Innovator that you are using?

Chris

&lt;hr /&gt;

Christopher Gillis

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