Tag Archives: SugarCRM

SugarCRM: Currencies Exchange Rate Updater

Not long ago, I wrote a post about the need of a free service that provided a variety of information related to currencies who led me to Open Exchange Rates: Real-time exchange rates for developers!

At that time I also mentioned how I had a couple of projects in mind related with the library I wrote then, curiously, one of these projects also matched a need felt by others: improving/automating the way how exchange rate updates are made in SugarCRM projects.

Two months later, more or less, I’m back with news regarding these projects: a few minutes ago I’ve released publicly, and more important, freely, my two first SugarCRM packages.

Continue reading

How to force a view to load other modules languages into SUGAR.language?

SugarCRMAs you should know each SugarCRM view extends SugarView class which has a nifty method called _displayJavascript()  who is responsible for including all needed JavaScript files.

When it comes to labels, by default, this function only loads current module labels into SUGAR.language.

Continue reading

How to reset field values on bean duplication?

SugarCRMWhat you need to do is inject some logic to clear selected field values before the view is displayed.

Like all other stuff made in SugarCRM, this process also depends on what type of module you’re hacking, in other words, the place where you’re going to write the logic depends if you’re hacking a custom module or a core one.

Continue reading

How to use NTLM authentication with NuSOAP?

For a couple of weeks I’ve been implementing Webservices to feed resources on a SugarCRM project that I’m working on. As you may know SugarCRM provides NuSOAP, which is a SOAP Toolkit for PHP that brings some extra functionalities to SOAP implementation provided by PHP.

Today I had to use NTLM authentication method, unfortunately it isn’t supported by NuSOAP yet, but I’ve found that if you combine cURL with NuSOAP you can get through without a problem.

Continue reading