<div dir="ltr">What I usually do is add a "header script" in the vtiger_links table and put  a conditional to see if I'm in the right module and view. <div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Saludos<div><br></div><div>Rubén</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 11, 2020 at 10:43 AM Alan Lord <<a href="mailto:alanslists@gmail.com">alanslists@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I have a custom module and in that module I have a View class, e.g<br>
<br>
> class LSMyCustomModule_InHelpDeskRelation_View extends Vtiger_RelatedList_View {<br>
<br>
The parent of Vtiger_RelatedList_View is Vtiger_Index_View and this has <br>
a getHeaderScripts() method.<br>
<br>
However, if I include a getHeaderScripts() method in my custom view, the <br>
method is never called.<br>
<br>
Why is this? And how can I dynamically load a custom script when my <br>
custom view is instantiated?<br>
<br>
The custom view class itself _is_ working - the "process()" method <br>
contains some custom code and that is doing what I want it to. I just <br>
want to load some JS when this related view is loaded...<br>
<br>
<br>
Al<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div>