Tag Archives: Views

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