Framework

From MobileX for SageCRM
Revision as of 11:25, 28 June 2016 by Crmtogether (talk | contribs) (Created page with "The Framework allows for customisation of the client side and server side (building your own API's to be consumed by the client) ---- Perform the following steps to add a ne...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The Framework allows for customisation of the client side and server side (building your own API's to be consumed by the client)


Perform the following steps to add a new plugin to the system:

1. Add an entry with plugin name to the <CustomPlugins> section in Web.config (in SageCRMWS project):

 <CustomPlugins>
   <plugins>
     <add name="myPlugin" />
   </plugins>
 </CustomPlugins>
2. Create subdirectory matching the name of plugin at SageCRMWS\js\plugins\myPlugin .

3. The plugin directory must contain at least the file at myPlugin\client\plugin.js with following (required) callback methods:


Called when the web application has finished loading.

var onDocumentReady = function() {

       // TODO: add your custom plugin code here
}


// Called when a context in the web application has changed, as the result of calling cApp.setContext() method var onContextChanged = function () {

       // TODO: add your custom plugin code here
}