[Vtigercrm-developers] getHeaderScripts not being called in custom view...
Alan Lord
alanslists at gmail.com
Wed Nov 11 17:15:42 GMT 2020
Yeah - I was hoping to not have to do that..
Al
On 11/11/2020 17:08, Rubén A. Estrada Orozco wrote:
> 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
> <mailto: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/
>
>
> _______________________________________________
> http://www.vtiger.com/
>
More information about the vtigercrm-developers
mailing list