The "utils" option allows you to define custom global utility functions. One use of a custom utility function is for populating a dropdown from the database. For example, you may wish to have a custom field on a contract that tracks what product is associated to it. There are two main steps to do this; define the custom function and then tell the custom field to pull from the function.
Using the module manifest organization mentioned in a previous post (https://www.sugaroutfitters.com/blog/organizing-files-in-a-module-zip) we first create the utils function in contract_products.php:
Now we tell our custom field to pull from this new function:
Finally, we add these to the manifest so that it will get installed via the Module Installer:
What other purposes have you used custom utils for?
Scoring / Rating field module
It has never been easier to Score Your Data Add rating fields to any SugarCRM module right from within Studio. No coding required ! Choose the maximum number of stars to display, allow (or not) half stars and you're ready to go ! Works on on all major views including Detail, Edit, List, and Sear...
Join.Me Meeting Integration
How many of your meetings are improved by screen sharing? Join.Me is an easy to use tool that makes product demos, troubleshooting, and team collaboration easier from remote Windows and Mac systems. Tie the excellent Join.Me service directly into your SugarCRM Meetings with this add-on.
Sage 100 ERP (MAS 90 & 200) Professional
Automatically synchronize Sage 100 Standard ERP and Sage 100 Advanced ERP (MAS 90 and MAS 200) with your SugarCRM with bi-directional syncing of customers and products. Push sales history and open invoices into SugarCRM and quotes/orders to Sage.
- Show more addons