<?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>Cell&amp;#039;s Right-click event on relationship tab</title><link>https://www.aras.com/community/f/development/3992/cell-s-right-click-event-on-relationship-tab</link><description>I have a parent Item &amp;#39;Matrix&amp;#39;.

Matrix has a relationship tab called &amp;#39;Project Documents&amp;#39;, which is loaded by an onBeforeGet Method.

&amp;#39;Project Documents&amp;#39; is a Relationship Item with several properties, each one is mapped to a specific &amp;#39;Document&amp;#39; Item.</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Cell's Right-click event on relationship tab</title><link>https://www.aras.com/community/thread/2197?ContentTypeID=1</link><pubDate>Tue, 30 Oct 2018 08:35:42 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:4c541896-0db8-40ec-a5ad-00973d4271c7</guid><dc:creator>Meismart</dc:creator><description>This looks like it will solve my problem.

Many thanks,
Martin&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cell's Right-click event on relationship tab</title><link>https://www.aras.com/community/thread/2196?ContentTypeID=1</link><pubDate>Wed, 24 Oct 2018 10:26:38 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:fbf37710-20fe-40e6-9273-e9d8ef3f711b</guid><dc:creator>Christopher Gillis</dc:creator><description>Hi Martin,

The easiest way to accomplish this would be to add an Item Action to the Project Documents relationship ItemType. Item Actions will automatically be added to the Right-click menu of the relationship grid.

You can then look up the value of the selected cell using code like the sample below.

&lt;pre&gt;&lt;code&gt;// Get the grid
var relationshipsId = window.relationshipsControl.currTabID;
var relationshipsFrame = window.frames[relationshipsId];
var gridApp = relationshipsFrame.contentWindow.gridApplet;
// Get the value of the selected cell
var selCell = gridApp.getSelectedCell();
var cellValue = selCell.getValue();&lt;/code&gt;&lt;/pre&gt;


Please note that there is currently a bug filed with the &lt;code&gt;getSelectedCell()&lt;/code&gt; method where it returns incorrect results if the relationship grid displays a mix of properties on the related ItemType as well as on the relationship ItemType.

Chris

&lt;hr /&gt;

Christopher Gillis

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