This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
/** | |
* Purpose:Limiting the subpanel records based on parent module | |
* Here we are limiting contacts module records based on parent module(Opporunities,Accounts and other module) * | |
* Path : sugar/custom/modules/contacts/clients/base/views/subpanel-list/subpanel-list.js | |
* Written by: Ajay Kumar | |
* Dated: 31 May 2016 | |
*/ | |
extendsFrom:'RecordlistView', | |
fallbackFieldTemplate: 'list', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
/*Disabling button ,condition based or dynamically on RecordView. | |
* AjayKumar | |
* custom/modules/Accounts/clients/base/views/record/reord.js | |
*/ | |
extendsFrom:'RecordView', | |
initialize:function(options){ | |
this._super('initialize',[options]); | |
this.on('render',this.makedisableButton,this); | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* I only wanted to apply this change to the Contacts modules so I put this file in: | |
* custom/modules/Contacts/clients/base/fields/fullname/ | |
*/ | |
({ | |
extendsFrom: 'FullnameField', | |
formatMap: { | |
'f': 'first_name', | |
'l': 'last_name', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
/* File: ./custom/modules/<Module>/clients/base/views/record/record.js */ | |
extendsFrom: 'RecordView', | |
initialize: function(options){ | |
/* Check if related module has records linked to current record and meet a specific criteria (filter) | |
* You need the "link" field name from vardefs for the specific | |
* subpanel you wish to check. | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// get the webhook response | |
$body = @file_get_contents('php://input'); | |
// decode the json data into a php object | |
$response = json_decode($body); | |
// the webhook property tells us exactly which webhook event was fired | |
// so let's create a case for a few webhooks |