<?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>tshoko さんのアクティビティ</title><link>https://www.aras.com/community/members/tshoko</link><description>tshoko さんの最近のアクティビティ</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>Ask A Question I</title><link>https://www.aras.com/community/achievements/460ac7df-7ccc-4c42-a204-9e05eef3be09</link><pubDate>Sun, 09 May 2021 14:18:58 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:c4da60ee-ef94-4217-ac88-a04cb378ba9b</guid><dc:creator /><description>Ask a question in a forum.</description></item><item><title>How to calculate a value of property for a child item using properties from parent item and relationship item?</title><link>https://www.aras.com/community/f/development/36466/how-to-calculate-a-value-of-property-for-a-child-item-using-properties-from-parent-item-and-relationship-item</link><pubDate>Sun, 09 May 2021 14:18:57 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:562c32c4-33dd-466a-bca8-07a8929a4c61</guid><dc:creator>tshoko</dc:creator><description>&lt;p&gt;I am new to Aras development and I am facing a problem now. I am trying to create a Grid Event within a relationship.&lt;/p&gt;
&lt;p&gt;I have 2 item types and a relationship type connecting them, which creates the 3rd item types.&lt;/p&gt;
&lt;p&gt;ItemType1 (Parent Item) has a property &amp;quot;Quantity1&amp;quot; and has a value in it.&lt;/p&gt;
&lt;p&gt;Relationship (Relationship Item) has a property &amp;quot;Rate&amp;quot; and has a value in it as well.&lt;/p&gt;
&lt;p&gt;ItemType2 (Child Item) has a property &amp;quot;Quantity2&amp;quot;, but its value is empty.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;ItemType1 (Quantity1)&lt;/li&gt;
&lt;li&gt;Relationship (Rate)&lt;/li&gt;
&lt;li&gt;ItemType2 (Quantity2)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I am trying to figure out how to calculate the value by (Quantity1) x (Rate) and set the value to &amp;quot;Quantity2&amp;quot;.&lt;/p&gt;
&lt;p&gt;I was able to get the Quantity 1 as below.&lt;/p&gt;
&lt;p&gt;var parent_item = parent.thisItem;&lt;br /&gt;var parent_quantity = parent_item.getProperty(&amp;quot;Quantity1&amp;quot;);&lt;/p&gt;
&lt;p&gt;But I wasn&amp;#39;t able to figure out how to get the &amp;quot;Rate&amp;quot; from the property of Relationship Item.&lt;/p&gt;
&lt;p&gt;I hope someone would give me a piece of advice.&lt;/p&gt;
&lt;p&gt;Thank you very much in advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>