[Vtigercrm-developers] Add related list records

Conrado Maggi comaggi at gmail.com
Tue Oct 7 19:28:22 GMT 2014


You need to create a custom related list function.

Look in contacts.php there are a few in there get_quotes for example.

Regards
El 07/10/2014 18:12, "SIAM Translations" <info at siam-translations.com>
escribió:

> I looking for the way to be able to add automatically set of chosen
> records to the related list. It should trigger on record creation in parent
> (custom) module, but after identification of value from picklist. Up to
> value in picklist (should be the same in parent and related table) related
> records will  be selected and added to the related list. In sql I can use
> kind of:
> *INSERT INTO* table1, (`crmid`, `module`, `relcrmid`, `relmodule`)
> *SELECT* tiger_crmentity.crmid, 'value1', vtiger_account.accountid,
> 'value2'
> *FROM* vtiger_crmentity, vtiger_account, vtiger_custommodule
> *WHERE* vtiger_account.industry=vtiger_customemodule.industry
>
> The point is how to limit operation to the only current inserted record
> into custom module, using custom function in  workflows.
>
> Regards
> Andrew Smith
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20141007/52967a9e/attachment.html>


More information about the vtigercrm-developers mailing list