Blog

Directly Calling an Action in SugarCRM 7

Posted by on February 12, 2014
In the old SugarCRM 6 world, if you wanted to create a custom action and call it directly it was as simple as creating a PHP file and dropping it in a directory. To illustrate, here is a simple example of an action called "HelloWorld". This exists in /custom/modules/Campaigns/HelloWorld.php...

Add Restricted Content to Packages on SugarCRM On-Demand

Posted by on February 6, 2014
If you’ve ever developed a SugarCRM Module Package for SugarCRM On-Demand, you’ve probably been confronted with some sort of content restriction. SugarCRM On-Demand currently employs several Module Loader restrictions. Package Scan File Scan Restricted Copy Module Loader Actions Valid file extension list Blacklist functions list This seems very reasonable, since it is content installed on SugarCRM’s servers, after all. Unfortunately, these restrictions often limit what a developer can do. For example, many PHP functions are blacklisted by the File Scanner. The valid file extension list restriction will prevent the use of many file types that may or may not even execute server side.

SugarCRM 7 - Extending a View

Posted by on November 20, 2013
Continuing on our journey of adding a global menu item, last week I covered how to pass data through to our custom menu option. However, I did so by simply copying over the core profileactions .hbt and .js file over to custom which leaves it vulnerable to being overwritten by some other add-on down the road. To minimize that risk I will now cover how to create a custom view that extends the core profileactions view.

SugarCRM 7 - Passing Data to Views

Posted by on November 13, 2013
Expanding on last week's example, we now look at how to pass data to the menu item to make the URL built specifically for the user who is currently logged in. A custom javascript object is created for a view along with a custom client API method that extends an existing endpoint.

SugarCRM 7 - Adding a Global Menu Item

Posted by on November 6, 2013
SugarCRM 7 is here and it is time to start digging under the hood. Along with it is a whole new, powerful way of customizing SugarCRM. This is a good thing. It’s an opportunity to rewrite our add-ons for our users which is one of those things developers always say that we’ll get to some time. In this example, we look at how to add a menu item to the global profile menu.