[Vtigercrm-developers] Custom views with form fields

Richard Hills richard at tw.co.nz
Wed Jan 22 10:28:57 GMT 2014


I got a single edit record line working (I need to display multiple 
records preferably in their open form state all at the same time).

The requirements seem to be that the form element has id="EditView" and 
the view name must set to Edit.

I will have a look tomorrow and am guessing I will need to make some 
heavy modification to the current javascript to achieve what I need. If 
anyone else is working on something similar I'd like to hear their findings.




On 22/01/14 16:42, Richard Hills wrote:
> Sorry for the spam.
>
> The below solved my issue with date selectors however reference 
> selectors (uitype 10) are still inactive after the change in view name 
> to edit.
>
> On 22/01/14 16:38, Richard Hills wrote:
>> The issue with my input fields not behaving was that my view was not 
>> called edit (and I don't really want it to be as I still require the 
>> normal edit mode).
>>
>> Once I renamed the view to be called "Edit" all worked as expected.
>>
>> Can anyone suggest a solution to this other than me looking through 
>> the code for all references to view = edit and replacing them with 
>> view in (array)?
>>
>> Thanks
>>
>> On 22/01/14 11:02, Richard Hills wrote:
>>> 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
>>>>
>>>
>>>
>>
>>
>
>



More information about the vtigercrm-developers mailing list