#Extending quick search to default filter to search by custom field#
This customization allows to user to search by another field aside name field
#Extending quick search to default filter to search by custom field#
This customization allows to user to search by another field aside name field
({ | |
plugins: ['Dashlet'], | |
initialize: function (options) { | |
var self = this; | |
this._super('initialize', [options]); | |
// Escuchador que se detona cuando se ha detectado que el api de | |
self.context.on('google:maps:api:load', _.bind(self._googleMapsApiLoadHandler, self)); | |
// Se define la función callback que se va a ejecutar cuando google maps api ya esta disponible | |
window.mapsApiCallback = function(){ | |
console.log('hola mundo, maps api cargado'); |
var map; | |
var panorama; | |
(function() { | |
var tt = new google.maps.LatLng(18.851874,-97.101803); | |
var mapOptions = { | |
center: tt, | |
zoom: 14, | |
mapTypeId: google.maps.MapTypeId.ROADMAP, | |
streetViewControl: false | |
}; |
<?php | |
/********************************************************************************* | |
* By installing or using this file, you are confirming on behalf of the entity | |
* subscribed to the SugarCRM Inc. product ("Company") that Company is bound by | |
* the SugarCRM Inc. Master Subscription Agreement (“MSA”), which is viewable at: | |
* http://www.sugarcrm.com/master-subscription-agreement | |
* | |
* If Company is not bound by the MSA, then by installing or using this file | |
* you are agreeing unconditionally that Company will be bound by the MSA and | |
* certifying that you have authority to bind Company accordingly. |
({ | |
events:{ | |
'click .button': '_createMeeting', | |
}, | |
_createMeeting: function(){ | |
var meeting = app.data.createBean('Meetings'); | |
meeting.set({ | |
// Create its UUID | |
id: app.utils.generateUUID(), | |
name: 'Test', |
({ | |
extendsFrom: 'LinkActionField', | |
openSelectDrawer: function() { | |
if (this.isDisabled()) { | |
return; | |
} | |
var parentModel = this.context.get('parentModel'), | |
linkModule = this.context.get('module'), | |
link = this.context.get('link'), |
({ | |
events:{ | |
'click button': '_handlerClick', | |
}, | |
_handlerClick: function(evt, el){ | |
var modelPrefil = app.data.createBean("Accounts"); | |
modelPrefil.set({ | |
name: "Account name", | |
assigned_user_name: 1 | |
}); |
({ | |
extendsFrom: "FilterLayout", | |
/** | |
* Applies filter on current contexts | |
* @param {String} query search string | |
* @param {Object} dynamicFilterDef(optional) | |
*/ | |
applyFilter: function(query, dynamicFilterDef) { | |
// TODO: getRelevantContextList needs to be refactored to handle filterpanels in drawer layouts, |
<?php | |
// Documentation.- http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.7/Architecture/Sugar_Logic/Dependency_Actions/ | |
$dependencies['Meetings']['readonly_fields'] = array( | |
'hooks' => array("edit"), // values : "edit", "view", "save" and "all" | |
'trigger' => 'equal($status,"Held")', //Optional, the trigger for the dependency. Defaults to 'true'. | |
'triggerFields' => array('status'), // The list of fields to watch for change events. When changed, the trigger expressions will be recalculated. | |
'onload' => true, // Whether or not to trigger the dependencies when the page is loaded. | |
//Actions is a list of actions to fire when the trigger is true | |
// You could list multiple fields here each in their own array under 'actions' | |
'actions' => array( |
<?php | |
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); | |
/********************************************************************************* | |
* By installing or using this file, you are confirming on behalf of the entity | |
* subscribed to the SugarCRM Inc. product ("Company") that Company is bound by | |
* the SugarCRM Inc. Master Subscription Agreement (“MSA”), which is viewable at: | |
* http://www.sugarcrm.com/master-subscription-agreement | |
* | |
* If Company is not bound by the MSA, then by installing or using this file | |
* you are agreeing unconditionally that Company will be bound by the MSA and |