[Vtigercrm-developers] Multiple contacts connected to a single field

Uma S uma.s at vtiger.com
Sat Oct 3 08:36:41 GMT 2020


Hi Mohan,

I think you have handled selection of multiple values for the field, For
data save making use of a custom table looks better. Where data is mapped
between record and reference record as in cntactivityrel.

On Thu, Oct 1, 2020 at 7:28 PM Sukhdev Mohan <s.mohan at myti.it> wrote:

> Can you suggest how can I achieve the aforementioned behaviour?
>
> Best Regards,
> *Sukhdev Mohan* | *Software Developer*
>
> Myti S.r.l - share the path
> Via Branze 44, Brescia
>
> tel  030 35.34.823
> fax 030 51.09.322
> https://www.myti.it/
>
>
>
>
>
>
>
> Il giorno 1 ott 2020, alle ore 14:04, Uma S <uma.s at vtiger.com> ha scritto:
>
> Hi Mohan,
>
> There is no such hard rule on how you save the data, As reference data is
> related to records without proper formatting will be hard to process the
> data.
>
> On Thu, Oct 1, 2020 at 3:12 PM Sukhdev Mohan <s.mohan at myti.it> wrote:
>
>> Hi Uma & all,
>>
>> I’ve managed to view and select the contacts, but it’s not saving them.
>>
>> My use case:
>> Custom module with 5 fields which are multi choice pick-list on contacts
>> and some other text fields.
>> For testing purpose I’ve started with one field, after success I’ll try
>> and connect the others too.
>>
>> Looking at the Events/models/Record.php I can see that there is a
>> cntactivitiesrel table, is it necessary or we can store values in custom
>> table field? Please help.
>>
>> Best Regards,
>> *Sukhdev Mohan* | *Software Developer*
>>
>>
>>
>>
>>
>>
>>
>> Il giorno 1 ott 2020, alle ore 09:53, Sukhdev Mohan <s.mohan at myti.it> ha
>> scritto:
>>
>> Hi uma,
>>
>> I can see the combo box but when I select add thay aren’t added
>> Best Regards,
>> *Sukhdev Mohan* | *Software Developer*
>>
>> Myti S.r.l - share the path
>> Via Branze 44, Brescia
>>
>> tel  030 35.34.823
>> fax 030 51.09.322
>> https://www.myti.it/
>>
>>
>>
>>
>>
>>
>>
>> Il giorno 1 ott 2020, alle ore 07:29, Uma S <uma.s at vtiger.com> ha
>> scritto:
>>
>> Hi Mohan,
>>
>> Please do analyze getFieldDataType() api of Events module in Field.php
>> for more details.
>>
>> On Wed, Sep 30, 2020 at 9:51 PM Sukhdev Mohan <s.mohan at myti.it> wrote:
>>
>>> Hi uma,
>>>
>>> I’ve copied fields.php and Multiplereference UI file (both php and ppl)
>>> still not working… can you share the exact procedure?
>>> Best Regards,
>>> *Sukhdev Mohan* | *Software Developer*
>>>
>>> Myti S.r.l - share the path
>>> Via Branze 44, Brescia
>>>
>>> tel  030 35.34.823
>>> fax 030 51.09.322
>>> https://www.myti.it/
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Il giorno 30 set 2020, alle ore 17:27, Uma S <uma.s at vtiger.com> ha
>>> scritto:
>>>
>>> Hi Mohan,
>>>
>>> Yes! uitype 57 is of reference field type, For Events module this has
>>> been customized on Field.php for fieldname as 'multireference' field type.
>>>
>>> On Wed, Sep 30, 2020 at 8:15 PM Sukhdev Mohan <s.mohan at myti.it> wrote:
>>>
>>>> Hi,
>>>>
>>>> Is there a way that let me connect multiple contacts to a single field
>>>> in a module? I heard of uitype 57 bu it's single.. I want to replicate the
>>>> behaviour in selecting contacts in Event creation in Calendar.
>>>>
>>>> Anyone has a clue how to do?
>>>> --
>>>> Best Regards,
>>>> Sukhdev Mohan
>>>> _______________________________________________
>>>> http://www.vtiger.com/
>>>
>>>
>>>
>>> --
>>> With
>>> Best Regards
>>> Uma.S
>>> Vtiger Team
>>> _______________________________________________
>>> http://www.vtiger.com/
>>>
>>>
>>> _______________________________________________
>>> http://www.vtiger.com/
>>
>>
>>
>> --
>> With
>> Best Regards
>> Uma.S
>> Vtiger Team
>> _______________________________________________
>> http://www.vtiger.com/
>>
>>
>>
>> _______________________________________________
>> http://www.vtiger.com/
>
>
>
> --
> With
> Best Regards
> Uma.S
> Vtiger Team
> _______________________________________________
> http://www.vtiger.com/
>
>
> _______________________________________________
> http://www.vtiger.com/



-- 
With
Best Regards
Uma.S
Vtiger Team
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20201003/b89ad46e/attachment-0001.html>


More information about the vtigercrm-developers mailing list