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?
KINAMU GDPR Module
The new GDPR, which enters into force on May 25, 2018, gives data subjects extensive possibilities to exercise control over their personal data. This results in a variety of obligations for data controllers. In order to be able to pursue this in a compliant and controlled manner KINAMU has developed...
Do you need to see your customers clearly on a map? Do you plan the meeting and would like to visit other customers on the way? Use the Google Maps module to integrate the maps directly to your SugarCRM or SuiteCRM.
CM & Sugar Sequencing Add-on
Need to set up a numbering system to track your records? Define and add a unique identifier field to any SugarCRM record. Option rich so that you can define the alphanumeric format that you need. Start tracking your Quote, Cases, Accounts and any other module today.
- Show more addons