[Vtigercrm-developers] how and where to add a custom setting?
Conrado Maggi
comaggi at gmail.com
Thu Apr 26 14:12:08 GMT 2018
Hello Alex,
It's not as easy as you mentioned.
You need to add the link in the DB to make the setting show up in the menu
(vtiger_settings_fields table) but the views and CRUD process of your
settings view need to be manually coded.
The best thing you could do is reserve engineer one view similar to what
you need. Maybe company information?
Conrado
On Thu, Apr 26, 2018 at 2:47 PM, Alex Hall <ahall at autodist.com> wrote:
> Hi all,
> I'd like to add a custom setting. I have a data sync job in PHP that cron
> runs, syncing from the AS400 to Vtiger. Per a suggestion from this list,
> the 400 now has a table storing only the records that have changed, and
> each record has a datetime so I can grab only changes since the sync job's
> last run. Storing the time of that last run is where my custom setting
> comes in.
>
> I need a place to keep a PHP date object, or a string that matches the
> 400's datetime string format. Either way is fine with me. Can I make a new
> configuration setting and access it? If so, how? Do I just add it to a
> config file? If it's that easy, what is the PHP code for accessing and
> later updating the setting? Thanks for any suggestions.
>
> --
> Alex Hall
> Automatic Distributors, IT department
> ahall at autodist.com
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20180426/ba90a9e9/attachment.html>
More information about the vtigercrm-developers
mailing list