[Vtigercrm-developers] getHeaderScripts not being called in custom view...

Rubén A. Estrada Orozco rulotec1 at gmail.com
Wed Nov 11 17:08:57 GMT 2020


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.

Saludos

Rubén


On Wed, Nov 11, 2020 at 10:43 AM Alan Lord <alanslists at gmail.com> wrote:

> I have a custom module and in that module I have a View class, e.g
>
> > class LSMyCustomModule_InHelpDeskRelation_View extends
> Vtiger_RelatedList_View {
>
> The parent of Vtiger_RelatedList_View is Vtiger_Index_View and this has
> a getHeaderScripts() method.
>
> However, if I include a getHeaderScripts() method in my custom view, the
> method is never called.
>
> Why is this? And how can I dynamically load a custom script when my
> custom view is instantiated?
>
> The custom view class itself _is_ working - the "process()" method
> contains some custom code and that is doing what I want it to. I just
> want to load some JS when this related view is loaded...
>
>
> Al
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20201111/0c9107d2/attachment.html>


More information about the vtigercrm-developers mailing list