[Vtigercrm-developers] Custom views with form fields
Richard Hills
richard at tw.co.nz
Tue Jan 21 22:02:01 GMT 2014
With the following smarty include:
{include file="../Vtiger/uitypes/Reference.tpl"}
And the following PHP:
$module = Vtiger_Module_Model::getInstance('modulename');
$ticketSelect =
Vtiger_Field_Model::getInstance('ticket',$module);
$ticketSelect->set('fieldvalue', 'value');
$viewer->assign('FIELD_MODEL', $ticketSelect);
I was able to put the selector onto my custom view. However I have now
two issues.
Firstly I would like to use this more than once on the screen and I
presume this can not be done without core hacks to adjust id's ?
And secondly the select currently does nothing (likely some additional
js is required?).
Thanks
On 22/01/14 10:20, Richard Hills wrote:
> I am attempting to migrate one of our modules to vtiger 6, this module
> always had an "overlay" screen outside of vtiger where the user could
> quickly enter data. In this version of the CRM we're looking at
> integrating this more solidly using a custom view.
>
> I am now at the point where I need to render input fields (uitype 10
> among others) for this custom view. Can anyone point me to an example
> of how this is done?
>
> Thank you
>
--
Richard Hills
TechnologyWise Ltd, Tauranga, NZ
richard at tw.co.nz
www.technologywise.co.nz
ph: +64 (0)7 571 1060
fax: +64 (0)7 571 1061
More information about the vtigercrm-developers
mailing list