[Vtigercrm-developers] vtiger 6.5 custom template - date / uitype 10 popups not working?
Richard Hills - Technologywise
richard at tw.co.nz
Tue Jul 30 09:44:59 GMT 2019
My issue was my viewname was not Edit. I've now copied the Edit.js to my templates resources and changed the top line to:
jQuery.Class("Vtiger_CustomView_Js",{
Now working as expected.
Thanks
On Tue, Jul 30, 2019 at 08:36:44PM +1200, [Richard Hills - Technologywise] wrote:
>Hi all
>
>Hoping someone can point me towards my mistake with a vtiger 6.5
>module, scratching my head but can't see what I've missed.
>
>I have a very basic custom template which looks like:
>
>{assign var="FIELD_MODEL" value="{$MODEL.date}"}
>{include file="../Vtiger/uitypes/Date.tpl"}
>
>And a view which looks like:
>
>Class CustomModule_View_View extends Vtiger_Index_View {
> public function process(Vtiger_Request $request) {
> $viewer = $this->getViewer ($request);
> $moduleName = $request->getModule();
> $module = Vtiger_Module_Model::getInstance($moduleName);
> $date = Vtiger_Field_Model::getInstance('date',$module);
> $model = array(
> 'date' => $date,
> );
> $viewer->assign('MODEL',$model);
> $viewer->view('Test.tpl',$moduleName);
> }
>}
>
>Everything looks great, I see my field with the calendar icon to the
>right, however it is not active, no javascript is triggered on click
>etc. so no real datepicker behaviour.
>
>I have the same issue when I test with the Reference template (uitype 10).
>
>I have looked over code where this has just worked in the past,
>however I assume I've missed something simple and hope someone else
>will tell me what it is.
>
>Appreciate your time to look.
>
>Thanks
>
>
>_______________________________________________
>http://www.vtiger.com/
--
Richard Hills
TechnologyWise
Basestation
148 Durham St
Tauranga, NZ
email: richard at tw.co.nz
office: +64 (0)7 571 1060
mobile: +64 (0)21 336 593
web: www.technologywise.co.nz
More information about the vtigercrm-developers
mailing list