[Vtigercrm-developers] Writing a function and using it in a custom module
Darlington Mpofu
darmpofu at gmail.com
Wed Mar 2 23:32:55 PST 2011
Hi all
l am a newbie to vtiger development and l believe it has its own unique
framework,hence writing functions is a little different and a little confusing
as a newbie in vtiger developer.Can anyone give me a structure on l can use
custom functions in vtiger.
for instance, l want to capture custom field values in a custom module, and use
the values to query the mysql tables and get values which should be inputted
into the respective fields when saving thus displayed on the detailview of that
particular module.
All along l have been writing/defining functions in the <module>.js then call it
in the functin save_module() of <module>.php but dint get any result.l konw l am
lost but l can get help here.
Questions l need answered:
1. where do l write the function, in the module.js or in the module.php or either
2.how do l capture values from custom fields in a function
3.how do l place the values into fields after querying the tables
4. is it the right thing to call the function inside the save_module function
in the module.php file
l would appreciate any help.thanx in advance
More information about the vtigercrm-developers
mailing list