javascript - SugarCRM 7 - How to share code between views -



javascript - SugarCRM 7 - How to share code between views -

i adding logic custom module in recordview. want able utilize same code in createactionsview.

how can 1 accomplish in upgrade-safe approach in sugarcrm 7.2.x without having re-create , paste same logic other view?

i should able injecting code stock record.js , calling functions inherited views not upgrade-safe.

you can bundle mutual js code separate script library , have included page via jsgroupings extension. if extend 1 of existing jsgroupings (such sidecar.min.js) ensure javascript pulled page.

http://support.sugarcrm.com/02_documentation/04_sugar_developer/sugar_developer_guide_7.5/50_extension_framework/extensions/jsgroupings/

by using extension, add-on of js code upgrade safe.

javascript php backbone.js sugarcrm

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -