<div dir="ltr">Hi Alan, <div><br></div><div>          Yes what you have said is right , <span style="font-family:arial,sans-serif;font-size:13px">app.notifyPostAjaxReady()</span><span style="font-family:arial,sans-serif;font-size:13px">  will help you in this case. To get the trigger once related list load you need to use api <b>app.</b></span><font face="arial, sans-serif"><b>listenPostAjaxReady(). </b></font></div><div><font face="arial, sans-serif"><b><br></b></font></div><div><font face="arial, sans-serif"><b>          </b>Currently the drawback that i am seeing in this is the same api will be triggered on list view record load and detail view (going on detail mode from summary mode) , So once we get trigger we need to check if we are in detail view and the respective tab is selected then perform the registration actions </font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">       // Listen post ajax event </font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">       app.</font><span style="font-family:arial,sans-serif">listenPostAjaxReady(function(){</span></div><div><span style="font-family:arial,sans-serif">              // check if the view is detail view </span></div><div><span style="font-family:arial,sans-serif">              if(app.</span><font face="arial, sans-serif">getViewName() == "Detail"){</font></div><div><font face="arial, sans-serif">                   // check if the related tab is selected and then register events </font></div><div><font face="arial, sans-serif">                   if(detailInstance.getSelectedTab() == "????"){</font></div><div><font face="arial, sans-serif">                         </font><span style="font-size:13px;font-family:arial,sans-serif">thisInstance.</span><u style="font-size:13px;font-family:arial,sans-serif"></u><span style="font-size:13px;font-family:arial,sans-serif">registerEventforU</span><span style="font-size:13px;font-family:arial,sans-serif">pdateQty();</span></div><div><font face="arial, sans-serif">                   }</font></div><div><font face="arial, sans-serif">              }</font></div><div><span style="font-family:arial,sans-serif">        });<br></span></div><div><span style="font-family:arial,sans-serif"><br></span></div><div><span style="font-family:arial,sans-serif"><br></span></div><div><span style="font-family:arial,sans-serif">    We will be implementing creating module specific related list instance soon,  so that we can handle register events in the instance itself . </span></div><div><span style="font-family:arial,sans-serif"><br></span></div><div><span style="font-family:arial,sans-serif">    </span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 12, 2014 at 3:41 PM, Alan Lord (News) <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have a situation where I need to re-register a custom event handler on a relatedList in a Detail View.<br>
<br>
I'm almost there but right now I am using a bit of code like this in my registerEvents() function:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
// Listen for ajaxComplete and re-register our eventHandler<br>
        jQuery( document ).ajaxComplete(function( event, xhr, settings ) {<br>
            if(xhr.responseText.indexOf('<<u></u>div class="relatedContainer">') == 0) {<br>
                thisInstance.<u></u>registerEventforUpdateQty();<br>
          }<br>
      });<br>
</blockquote>
<br>
I notice there is this app.notifyPostAjaxReady() function and wonder if this would help me instead of the above? But it isn't very clear how to make use of it.<br>
<br>
Thanks<span class="HOEnZb"><font color="#888888"><br>
<br>
Al<br>
<br>
<br>
-- <br>
Libertus Solutions<br>
<a href="http://www.libertus.co.uk" target="_blank">http://www.libertus.co.uk</a><br>
<br>
______________________________<u></u>_________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><br><div>Best Regards,</div><div>K Praneeth,</div><div>vtiger Team.</div><div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><b>Connect with us on: </b><a href="http://twitter.com/vtigercrm" target="_blank"><font color="#0000cc">Twitter</font> </a><b>I</b> <a href="http://www.facebook.com/pages/vtiger/226866697333578?sk=wall" style="color:rgb(0,0,204)" target="_blank">Facebook</a> <b>I</b> <a href="http://blog.vtiger.com/" style="color:rgb(0,0,204)" target="_blank">Blog</a><b> I</b> <a href="http://wiki.vtiger.com/index.php/Main_Page" style="color:rgb(0,0,204)" target="_blank">Wiki</a> <b>I </b><a href="http://forums.vtiger.com/" style="color:rgb(0,0,204)" target="_blank">Forums </a><b>I</b> <a href="http://vtiger.com/" style="color:rgb(0,0,204)" target="_blank">Website</a></span></div></div>
</div>