<?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>Avoid Creation of relatonship depending upon condition</title><link>https://www.aras.com/community/f/development/3257/avoid-creation-of-relatonship-depending-upon-condition</link><description>hiii

i want to avoid creation of relationship depending upon condition that same item cannot be added in relationship

i write code to find same item but not able to avoid adding selected item in relationship

i put code on onInsertRow event of relationship</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Avoid Creation of relatonship depending upon condition</title><link>https://www.aras.com/community/thread/453?ContentTypeID=1</link><pubDate>Fri, 12 May 2017 06:13:58 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:6a5c1e81-e7d3-4828-864c-aa5d257a2d18</guid><dc:creator>Yoann Maingon</dc:creator><description>It seems like you just look at alert messages to debug. I suggest you look in the console what happens.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoid Creation of relatonship depending upon condition</title><link>https://www.aras.com/community/thread/449?ContentTypeID=1</link><pubDate>Fri, 12 May 2017 05:44:46 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:2db9a035-278f-4290-bd9d-e57efb4d22f6</guid><dc:creator>R</dc:creator><description>upto alert() statement it works fine

but it not delete item from relationship&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoid Creation of relatonship depending upon condition</title><link>https://www.aras.com/community/thread/442?ContentTypeID=1</link><pubDate>Fri, 12 May 2017 05:31:16 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:3e12e7e8-ebd1-4350-aff7-d58c16626f2a</guid><dc:creator>Yoann Maingon</dc:creator><description>Can you tell us what happens if you do a step by step debug? That&amp;#39;s where you might see what isn&amp;#39;t right.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>