Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
14
16
text
stringlengths
33
5.27k
source
stringlengths
105
270
1daa17712cd0-0
User Interface Overview Sugar's user interface is dependent on the client (i.e. base, mobile, or portal) being used to access the system. Clients are the various platforms that use Sugar's APIs to render the user interface. Each platform type will have a specific path for its components. While the Developer Guide mainl...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/index.html
1daa17712cd0-1
TopicsSidecarSidecar is a platform that moves processing to the client side to render pages as single-page web apps. Sidecar contains a complete Model-View-Controller (MVC) framework based on the Backbone.js library.EventsThe Backbone events module is a lightweight pub-sub pattern that gets mixed into each Backbone cla...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/index.html
1daa17712cd0-2
that render data from a context and make use of the Dashlet plugin. They are typically made up of a controller JavaScript file (.js) and at least one Handlebars template (.hbs).DrawersThe drawer layout widget, located in ./clients/base/layouts/drawer/, is used to display a window of additional content to the user. This...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/index.html
1daa17712cd0-3
Last modified: 2023-02-03 21:04:03
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/index.html
3537f8ac3d5e-0
Layouts Overview Layouts are component plugins that define the overall layout and positioning of the page. Layouts replace the previous concept of MVC views and are used system-wide to generate rows, columns, bootstrap fluid layouts, and pop-ups by wrapping and placing multiple views or nested layouts on a page. Layout...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Layouts/index.html
3537f8ac3d5e-1
* @param {View.View} comp * @protected * @method */ _placeComponent: function(comp, def) { var size = def.size || 12; // Helper to create boiler plate layout containers function createLayoutContainers(self) { // Only creates the containers once if (!sel...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Layouts/index.html
3537f8ac3d5e-2
TopicsCreating LayoutsThis example explains how to create a custom layout to define the various components that load on a page.Overriding LayoutsThis page explains how to override a stock layout component. For this example, we will extend the stock record view and create a custom view named "my-record" that will be use...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Layouts/index.html
a9a9c9ff86a7-0
Overriding Layouts Overview This page explains how to override a stock layout component. For this example, we will extend the stock record view and create a custom view named "my-record" that will be used in our record layout's override. This example involves two steps: Override the Layout Extend the View These steps ...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Layouts/Overriding_Layouts/index.html
a9a9c9ff86a7-1
'layout' => array( 'type' => 'filterpanel', 'last_state' => array( 'id' => 'record-filterpanel', 'defaults' => array( ...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Layouts/Overriding_Layouts/index.html
a9a9c9ff86a7-2
'type' => 'base', 'name' => 'dashboard-pane', 'css_class' => 'dashboard-pane', 'components' => array( array( 'layout' => array( ...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Layouts/Overriding_Layouts/index.html
3177da3143e2-0
Creating Layouts Overview This example explains how to create a custom layout to define the various components that load on a page.  Creating the Layout This example creates a component named "my-layout", which will render a custom view named "my-view". ./custom/clients/base/layouts/my-layout/my-layout.php <?php ...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Layouts/Creating_Layouts/index.html
3177da3143e2-1
<p>Click to spin the cube!</p> Once the files are in place, navigate to Admin > Repair and perform a Quick Repair and Rebuild. Navigating to the Layout To see this new layout and view, navigate to http://{site url}/#<module>/layout/my-layout. Last modified: 2023-02-03 21:04:03
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Layouts/Creating_Layouts/index.html
033d501482fe-0
Language Overview The language library, located in ./sidecar/src/core/language.js, is used to manage the user's display language as well as fetch labels and lists. For more information on customizing languages, please visit the language framework documentation. Methods app.lang.get(key, module, context) The app.lang.ge...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Language/index.html
033d501482fe-1
Example app.lang.getLanguage(); app.lang.updateLanguage(languageKey) The app.lang.updateLanguage(languageKey) method updates the current user's language key. Parameters Name Required Description languageKey yes Language key of the language to set for the user Example app.lang.updateLanguage('en_us'); Testing in Console...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Language/index.html
3a76fdeb8516-0
Subpanels Overview For Sidecar, Sugar's subpanel layouts have been modified to work as simplified metadata. This page is an overview of the metadata framework for subpanels.  The reason for this change is that previous versions of Sugar generated the metadata from various sources such as the SubPanelLayout and MetaD...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Subpanels/index.html
3a76fdeb8516-1
'link' => 'contacts', ), ), array ( 'layout' => 'subpanel', 'label' => 'LBL_ACCOUNTS_SUBPANEL_TITLE', 'context' => array ( 'link' => 'accounts', ), ), array ( 'layout' => 'subpanel', 'label' => 'LBL_CASES_SUBPANE...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Subpanels/index.html
3a76fdeb8516-2
), ); Adding Subpanel Layouts When a new relationship is deployed from Studio, the relationship creation process will generate the layouts using the extension framework. You should note that for stock relationships and custom deployed relationships, layouts are generated for both Sidecar and Legacy MVC Subpanel formats...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Subpanels/index.html
3a76fdeb8516-3
array ( 'link' => 'bugs_leads_1', ), ); Note: The additional legacy MVC layouts generated by a relationships deployment are described below. Legacy MVC Subpanel Layouts Custom Legacy MVC Subpanel layouts, located in ./custom/Extension/modules/<module>/Ext/Layoutdefs/, are compiled into ./custom/modules/<module>/E...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Subpanels/index.html
3a76fdeb8516-4
'mode' => 'MultiSelect', ), ), ); ./custom/Extension/modules/Bugs/Ext/WirelessLayoutdefs/bugs_leads_1_Bugs.php <?php $layout_defs["Bugs"]["subpanel_setup"]['bugs_leads_1'] = array ( 'order' => 100, 'module' => 'Leads', 'subpanel_name' => 'default', 'title_key' => 'LBL_BUGS_LEADS_1_FROM_LEADS_TITLE', 'ge...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Subpanels/index.html
3a76fdeb8516-5
'type' => 'datetime', 'studio' => array ( 'portaleditview' => false, ), 'readonly' => true, 'vname' => 'LBL_DATE_ENTERED', 'width' => '10%', 'default' => true, ), 'refered_by' => array ( 'vname' => 'LBL_LIST_REFERED_BY', 'width' => '10%', 'default' => true, ), 'le...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Subpanels/index.html
3a76fdeb8516-6
'usage' => 'query_only', ), 'last_name' => array ( 'usage' => 'query_only', ), 'salutation' => array ( 'name' => 'salutation', 'usage' => 'query_only', ), ); To modify this layout, navigate to Admin > Studio > {Parent Module} > Subpanels > Bugs and make your changes. Once saved, Sugar will gen...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Subpanels/index.html
80d585ae9be3-0
Legacy MVC Overview The legacy MVC Architecture. You should note that the MVC architecture is being deprecated and is being replaced with sidecar. Until the framework is fully deprecated, modules set in backward compatibility mode will still use the MVC framework. Model-View-Controller (MVC) Overview A model-view-cont...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/index.html
fef8b569439a-0
Controller Overview The basic actions of a module. Controllers The main controller, named SugarController, addresses the basic actions of a module from EditView and DetailView to saving a record. Each module can override this SugarController by adding a controller.php file into its directory. This file extends the Suga...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Controller/index.html
fef8b569439a-1
./custom/modules/<module>/controller.php class <module>Controller extends SugarController { function action_<action>() { $this->view = '<action lowercase>'; } } If the module does contain a controller.php file, you will need to extend it by doing the following: ./custom/modules/<module>/controller.p...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Controller/index.html
fef8b569439a-2
./custom/modules/<module> ./custom/include/MVC/Controller Each one loads and overrides the previous definition if in conflict. You can drop a new action_file_map in the later path sequence that extends or overrides the mappings defined in the previous one. Upgrade-Safe Implementation If you want to add custom action_fi...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Controller/index.html
fef8b569439a-3
If not found check for modules/<module>/<action>.php. If found and ./modules/<module>/views/view.<action>.php is not found, then use the ./modules/<module>/<action>.php action. If not found, check for the method action_<action> in the controller. If not found, check for an action_file_mapping. If not found, report erro...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Controller/index.html
8de86a97c55a-0
View Overview Displaying information to the browser. What are Views? Views, otherwise known as actions, are typically used to render views or to process logic. Views are not just limited to HTML data. You can send JSON encoded data as part of a view or any other structure you wish. As with the controllers, there is a d...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/View/index.html
8de86a97c55a-1
Process Actions Save: This Controller action is processed when the user clicks Save in the record's edit view. Delete: This action is processed when the user clicks "Delete" in the detail view of a record or in the detail view of a record listed in a subpanel. Implementation Class File Structure ./include/MVC/Views/Sug...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/View/index.html
8de86a97c55a-2
class <module>Controller extends SugarController { function action_MyView() { $this->view = 'myview'; } } More information on controllers can be found in the Controller section. The next step is to define your view file. This example extends the ViewDetail class but you can extend any of the classes...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/View/index.html
8de86a97c55a-3
//call parent display method parent::display(); } } If ./modules/<module>/views/view.detail.php does exist, you would create ./custom/modules/<module>/views/view.detail.php and extend the base <module>ViewDetail class with the name Custom<module>ViewDetail. ./custom/modules/<module>/views/view.detail.php <?...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/View/index.html
8de86a97c55a-4
'show_JavaScript' => true, ), ), 'req_params' => array( 'to_pdf' => array( 'param_value' => true, 'config' => array( 'show_all' => false ), ), ), ); To illustrate this process, let us take a look at how the 'popup' action is process...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/View/index.html
b7b52ac14944-0
Examples Provides an overview of example MVC customizations.  TopicsChanging the ListView Default Sort OrderThis article addresses the need to customize the advanced search layout options for modules in backward compatibility mode to change the default sort order from ascending to descending. Last modified: 2023-02...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Examples/index.html
f14b3f143ead-0
Changing the ListView Default Sort Order Overview This article addresses the need to customize the advanced search layout options for modules in backward compatibility mode to change the default sort order from ascending to descending. Customization Information This customization is only for modules in backward compati...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Examples/Changing_the_ListView_Default_Sort_Order/index.html
f14b3f143ead-1
./custom/include/MVC/View/views/view.customlist.php <?php require_once 'include/MVC/View/views/view.list.php'; class ViewCustomList extends ViewList { function prepareSearchForm() { $this->searchForm = null; //search $view = 'basic_search'; if(!empty($_REQUEST['search_form_view']...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Examples/Changing_the_ListView_Default_Sort_Order/index.html
f14b3f143ead-2
$searchMetaData = SearchForm::retrieveSearchDefs($this->module); $this->searchForm = $this->getSearchForm2($this->seed, $this->module, $this->action); $this->searchForm->setup($searchMetaData['searchdefs'], $searchMetaData['searchFields'], 'SearchFormGeneric.tpl', $view, $this->listViewDefs); ...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Examples/Changing_the_ListView_Default_Sort_Order/index.html
f14b3f143ead-3
private function post_action() { return parent::post_action(); } /** * Perform the listview action */ protected function action_listview() { parent::action_listview(); //set the new custom view $this->view = 'customlist'; } } ?> Last modified: 2023-02...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Examples/Changing_the_ListView_Default_Sort_Order/index.html
02125e64959d-0
Metadata Overview An overview of the legacy MVC metadata framework. You should note that the MVC architecture is being deprecated and is being replaced with sidecar. Until the framework is fully deprecated, modules set in backward compatibility mode will still use the legacy MVC framework. Metadata Framework Background...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Metadata/index.html
02125e64959d-1
The $beanFiles variable is also stored in a 'name' => 'value' fashion. The 'name', typically in singular, is a reference to the class name of the object, which is looked up from the $beanList 'value', and the 'value' is a reference to the class file. The remaining relevant variables in the modules.php file are the $mod...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Metadata/index.html
02125e64959d-2
<?php $searchdefs['Accounts'] = array( 'templateMeta' => array( 'maxColumns' => '3', 'widths' => array( 'label' => '10', 'field' => '30' ) ), 'layout' => array( 'basic_search' => array( 'name', ...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Metadata/index.html
02125e64959d-3
'label' =>'LBL_STATE', 'type' => 'name' ), 'employees', array( 'name' => 'address_postalcode', 'label' =>'LBL_POSTAL_CODE', 'type' => 'name' ), array( ...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Metadata/index.html
02125e64959d-4
The 'layout' key points to another nested array which defines the fields to display in the basic and advanced search form tabs. Each individual field definition maps to a SugarField widget. See the SugarField widget section for an explanation about SugarField widgets and how they are rendered for the search form, Detai...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Metadata/index.html
02125e64959d-5
When the view is first requested, the preDisplay method will attempt to find the correct Metadata file to use. Typically, the Metadata file will exist in the [root level]/modules/[module]/metadata directory, but in the event of edits to a layout through the Studio interface, a new Metadata file will be created and plac...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Metadata/index.html
02125e64959d-6
After the preDisplay method is called in the view code, the display method is called, resulting in a call to the EditView object's process method, as well as the EditView object's display method. The EditView class is responsible for the bulk of the Metadata file processing and creation of the resulting display. The Ed...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Metadata/index.html
02125e64959d-7
Some of the modules that are available in the SugarCRM application also extend the ViewDetail class. One example of this is the DetailView for the Projects module. As mentioned in the MVC section, it is possible to extend the view classes by placing a file in the modules/<module>/views directory. In this case, a view.d...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Metadata/index.html
02125e64959d-8
// Call DetailView2 constructor $dv = new DetailView2(); // Assign by reference the Sugar_Smarty object created from MVC // We have to explicitly assign by reference to back support PHP 4.x $dv->ss =& $this->ss; // Call the setup function $dv->setup($this->module, $this->bean, $metadataFile, 'include/DetailView/DetailV...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Metadata/index.html
02125e64959d-9
It should be noted that the generic DetailView (A) defaults to using the generic DetailView.tpl smarty template file (F). This may also be overridden through the constructor parameters. The generic DetailView (A) constructor also retrieves the record according to the record id and populates the $focus bean variable. Th...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Metadata/index.html
02125e64959d-10
The actual metadata layout will allow for variable column lengths throughout the displayed table. For example, the metadata portion defined as: 'panels' => array( 'default' => array( array( 'name', array( 'name' => 'amount', 'label' => '{$MOD.LBL_AMOUN...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Metadata/index.html
02125e64959d-11
Before HTML code is sent back, the TemplateHandler (D) first performs a check to see if an existing DetailView template already exists in the cache respository (H). In this case, it will look for file cache/modules/Opportunity/DetailView.tpl. The operation of creating the Smarty template is expensive so this operation ...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Metadata/index.html
eeb75bb5de8c-0
Examples Legacy MVC metadata examples. TopicsHiding the Quotes Module PDF ButtonsHow to hide the PDF buttons on a Quote.Manipulating Buttons on Legacy MVC LayoutsHow to add custom buttons to the EditView and DetailView layouts.Manipulating Layouts ProgrammaticallyHow to manipulate and merge layouts programmatically.Mod...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Metadata/Examples/index.html
9b014ffdc085-0
Manipulating Buttons on Legacy MVC Layouts Overview How to add custom buttons to the EditView and DetailView layouts. Note: This customization is only applicable for modules in backward compatibility mode. Metadata Before adding buttons to your layouts, you will need to understand how the metadata framework is used. De...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Metadata/Examples/Manipulating_Buttons_on_Layouts/index.html
9b014ffdc085-1
Admin > Studio > {Module} > Layouts > {View} This process can be a bit confusing, however, once a layout is changed, you can then choose to load the layout in studio and then click "Save & Deploy" . This will rebuild the cache for that specific layout. Please note that any time you change the layout, you will have to r...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Metadata/Examples/Manipulating_Buttons_on_Layouts/index.html
9b014ffdc085-2
), ), ), Submitting the Stock View Form If you intend to submit the stock layout form ('formDetailView' or 'formEditView') to a new action, you can do so by adding a the button HTML with an onclick event as shown below to: $viewdefs['<Module>']['<View>']['templateMeta']['form']['buttons'] Example <?php $v...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Metadata/Examples/Manipulating_Buttons_on_Layouts/index.html
9b014ffdc085-3
'templateMeta'][ 'form'][ 'hidden'] Submitting Custom Forms If you intend to submit a custom form, you will first need to set 'closeFormBeforeCustomButtons' to true. This will close out the current views form and allow you to create your own. $viewdefs['<Module>']['<View>']['templateMeta']['form']['closeFormBeforeC...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Metadata/Examples/Manipulating_Buttons_on_Layouts/index.html
9b014ffdc085-4
'DetailView' => array ( 'templateMeta' => array ( 'form' => array ( 'buttons' => array ( 'EDIT', 'DUPLICATE', 'DELETE', 'FIND_DUPLICATES' ), ), To remove one or more buttons, s...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Metadata/Examples/Manipulating_Buttons_on_Layouts/index.html
7878859e520f-0
Modifying Layouts to Display Additional Columns Overview How to add additional columns to layouts. By default, the editview, detailview, and quickcreate layouts for each module display two columns of fields. The number of columns to display can be customized on a per-module basis with the following steps. Note: This cu...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Metadata/Examples/Modifying_Layouts_to_Display_Additional_Columns/index.html
7878859e520f-1
'field' => '30', ), 2 => array ( 'label' => '10', 'field' => '30', ), ), After this is completed, you will need to create a module-loadable package to install the changes on your SugarCloud instance. More information on creating this package can be found in Creating an Installable Package t...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Metadata/Examples/Modifying_Layouts_to_Display_Additional_Columns/index.html
7878859e520f-2
'maxColumns' => '3', Once that is updated, locate the 'widths' array to define the spacing for your new column(s). You should have a label and field entry for each column in your layout: 'widths' => array ( 0 => array ( 'label' => '10', 'field' => '30', ), 1 => array ( 'label' => '10...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Metadata/Examples/Modifying_Layouts_to_Display_Additional_Columns/index.html
121ae268bdfb-0
Manipulating Layouts Programmatically Overview How to manipulate and merge layouts programmatically. Note: This customization is only applicable for modules in backward compatibility mode. The ParserFactory The ParserFactory can be used to manipulate layouts such as editviewdefs or detailviewdefs. This is a handy when ...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Metadata/Examples/Manipulating_Layouts_Programmatically/index.html
792544b4014b-0
Hiding the Quotes Module PDF Buttons Overview How to hide the PDF buttons on a Quote. The PDF buttons on quotes are rendered differently than the standard buttons on most layouts. Since these buttons can't be removed directly from the DetailView in the detailviewdefs, the best approach is using jQuery to hide the butto...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Metadata/Examples/Hidding_the_Quotes_Module_PDF_Buttons/index.html
792544b4014b-1
array ( 0 => 'EDIT', 1 => 'SHARE', 2 => 'DUPLICATE', 3 => 'DELETE', 4 => array ( 'customCode' => '<form action="index.php" method="POST" name="Quote2Opp" id="form"> <input type="hidden" name="module" value="Quotes"> ...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Metadata/Examples/Hidding_the_Quotes_Module_PDF_Buttons/index.html
792544b4014b-2
), ), 'footerTpl' => 'modules/Quotes/tpls/DetailViewFooter.tpl', ), 'maxColumns' => '2', 'widths' => array ( 0 => array ( 'label' => '10', 'field' => '30', ), 1 => array ( 'label' => '10', 'field' => ...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Legacy_MVC/Metadata/Examples/Hidding_the_Quotes_Module_PDF_Buttons/index.html
d50cf2fe841d-0
Events Overview The Backbone events module is a lightweight pub-sub pattern that gets mixed into each Backbone class (Model, View, Collection, Router, etc.). This means that you can listen to or dispatch custom named events from any Backbone object. Backbone events should not be confused with a jQuery events, which ar...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Events/index.html
d50cf2fe841d-1
Name Description app:init Triggered after the Sidecar application initializesNote: Initialization registers events, builds out Sidecar API objects, loads public metadata and config, and initializes modules. app:start Triggered after the Sidecar application starts app:sync Triggered when metadata is being synced with th...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Events/index.html
d50cf2fe841d-2
attributes:revert Triggered when the bean reverts to the previous attributes Context Events The context object is used to facilitate communication between different Sidecar components on the page using events. For example, the button:save_button:click event triggers whenever a user clicks the Save button. The record vi...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Events/index.html
d50cf2fe841d-3
} break; } } Once in place, navigate to Admin > Repair > Rebuild JS Grouping Files. After the JSGroupings are rebuilt, clear your browser cache and the custom JavaScript will now trigger after a successful logout. Last modified: 2023-02-03 21:04:03
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Events/index.html
9bd7b857ec71-0
Alerts Overview The alert view widget, located in ./clients/base/views/alert/, displays helpful information such as loading messages, notices, and confirmation messages to the user. Methods app.alert.show(id, options) The app.alert.show(id, options) method displays an alert message to the user with the options provided...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Alerts/index.html
9bd7b857ec71-1
}); app.alert.dismiss(id) The app.alert.dismiss(id) method dismisses an alert message from view based on the message id. Parameters Name Description id The id of the alert message to dismiss. Example app.alert.dismiss('message-id'); app.alert.dismissAll The app.alert.dismissAll dismisses all alert messages from view. E...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Alerts/index.html
07a7367e4dd7-0
Administration Links Overview Administration links are the shortcut URLs found on the Administration page in the Sugar application. Developers can create additional administration links using the extension framework. The global links extension directory is located at ./custom/Extension/modules/Administration/Ext/A...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Administration_Links/index.html
07a7367e4dd7-1
//Section links $admin_option_defs, //Section description label 'LBL_SECTION_DESCRIPTION' ); To define labels for administration links in the new panel: ./custom/Extension/modules/Administration/Ext/Language/en_us.<name>.php <?php $mod_strings['LBL_LINK_NAME'] = 'Link Name'; ...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Administration_Links/index.html
d9df790905a1-0
Dashlets Overview Dashlets are special view-component plugins that render data from a context and make use of the Dashlet plugin. They are typically made up of a controller JavaScript file (.js) and at least one Handlebars template (.hbs). Hierarchy Diagram Sugar loads the dashlet view components in the following manne...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Dashlets/index.html
d9df790905a1-1
The Dashlet view contains the 'dashlets' metadata: Parameters Type Required Description label String yes The name of the dashlet description String no A description of the dashlet config Object yes Pre-populated variables in the configuration viewNote: Config variables in the metadata are assigned to the custom model...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Dashlets/index.html
d9df790905a1-2
array( 'name' => 'panel_body', 'columns' => 2, 'labelsOnTop' => true, 'placeholders' => true, 'fields' => array( array( 'name' => 'feed_url', 'label' => 'LBL_RSS_FEED_URL', 'type' => '...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Dashlets/index.html
d9df790905a1-3
* * Copyright (C) SugarCRM Inc. All rights reserved. */ /** * RSS Feed dashlet consumes an RSS Feed URL and displays it's content as a list * of entries. * * The following items are configurable. * * - {number} limit Limit imposed to the number of records pulled. * - {number} refresh How often (minutes) shoul...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Dashlets/index.html
d9df790905a1-4
this.settings.set('limit', options.limit); options.auto_refresh = this.settings.get('auto_refresh') || this._defaultOptions.auto_refresh; this.settings.set('auto_refresh', options.auto_refresh); // There is no default for this so there's no pointing in setting from it opt...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Dashlets/index.html
d9df790905a1-5
var fieldOnView = _.find(this.fields, function(comp, cid) { return comp.name === field.name; }); fieldOnView.model.trigger('error:validation:' + field.name, {required: true}); }, this); // False return tells the drawer that it shouldn't clos...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Dashlets/index.html
d9df790905a1-6
_renderHtml: function() { if (this.meta.config) { this._super('_renderHtml'); return; } this._super('_renderHtml'); } }) Workflow When triggered, the following procedure will render the view area: Retrieving Data Use the following commands to retrieve the correspondin...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Dashlets/index.html
d9df790905a1-7
<div class="rss-feed"> <h4> {{#if feed.link}}<a href="{{feed.link}}">{{/if}} {{feed.title}} {{#if feed.link}}</a>{{/if}} </h4> <ul> {{#each feed.entries}} <li class="news-article"> <a href="{{link}}">Dashlets</a> ...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Dashlets/index.html
2ee769f6e3c0-0
Sidecar Overview Sidecar is a platform that moves processing to the client side to render pages as single-page web apps. Sidecar contains a complete Model-View-Controller (MVC) framework based on the Backbone.js library. By creating a single-page web app, server load drastically decreases while the client's performanc...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Sidecar/index.html
2ee769f6e3c0-1
Views Views are components that render data from a context and may or may not include field components. Example views include not only record and list views but also widgets such as: Graphs or other data visualizations External data views such as Twitter, LinkedIn, or other web service integrations The global header Fo...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Sidecar/index.html
2bfef099996c-0
Routes Overview Routes determine where users are directed based on patterns in the URL. Routes Routes, defined in ./include/javascript/sugar7.js, are URL patterns signified by a hashtag ("#") in the URL. An example module URL pattern for the Sugar application is http://{site url}/#<module>. This route would di...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Routes/index.html
2bfef099996c-1
module id Custom Routes As of 7.8.x, you can add the routes during the initialization of the Router, so custom routes can be registered in the Sidecar router during both router:init and router:start events. It is recommended to register them in the Initialization event before any routing has occurred. There are two...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Routes/index.html
2bfef099996c-2
}); }); }) })(SUGAR.App); addRoutes() When you need to add multiple routes, you can define the routes in an array and pass the entire array to the addRoutes() method on the Sidecar Router to ensure they are registered. Please note, the addRoutes() method utilizes the above route() method to register the route...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Routes/index.html
2bfef099996c-3
} } ]; app.router.addRoutes(routes); }) })(SUGAR.App); Next, create the JSGrouping extension. This file will allow Sugar to recognize that you've added custom routes.  ./custom/Extension/application/Ext/JSGroupings/myCustomRoutes.php <?php foreach ($js_groupings as $key => $groupings) {...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Routes/index.html
bedb57e1e5c8-0
Handlebars Overview The Handlebars library, located in ./sidecar/lib/handlebars/, is a JavaScript library that lets Sugar create semantic templates. Handlebars help render content for layouts, views, and fields for Sidecar. Using Handlebars, you can make modifications to the display of content such as adding HTML or C...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Handlebars/index.html
bedb57e1e5c8-1
Create a Handlebars helper file in the ./custom/ directory. For this example, we will create two functions to convert a string to uppercase or lowercase: ./custom/JavaScript/my-handlebar-helpers.js  /** * Handlebars helpers. * * These functions are to be used in handlebars templates. * @class Handlebars.helpers ...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Handlebars/index.html
bedb57e1e5c8-2
Quick Repair and Rebuild Rebuild JS Groupings. You can now use your custom helpers in the HBS files by using: {{customUpperCase "MyString"}} {{customLowerCase "MyString"}} Note: You can also access the helpers function from your browsers developer console using Handlebars.helpers Last modified: 2023-02-03 21:04:...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Handlebars/index.html
990e16c02ed2-0
Views Overview Views are component plugins that render data from a context. View components may contain field components and are typically made up of a controller JavaScript file (.js) and at least one Handlebars template (.hbs). Load Order Hierarchy Diagram The view components are loaded in the following manner: Note:...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Views/index.html
990e16c02ed2-1
Extending Views When working with module views, it is important to understand the difference between overriding and extending a view. Overriding is essentially creating or copying a view to be used by your application that is not extending its parent. By default, some module views already extend the core ./clients/bas...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Views/index.html
990e16c02ed2-2
Basic View Example A simple view for beginners is the access-denied view. The view is located in ./clients/base/views/access-denied/ and is what handles the display for restricted access. The sections below will outline the various files that render this view. Controller The access-denied.js, shown below, controls the ...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Views/index.html
990e16c02ed2-3
Name Description str Handlebars helper to render the label string subFieldTemplate Handlebars helper to render the cube content Cookbook Examples When working with views, you may find the follow cookbook examples helpful: Adding Buttons to the Record View Adding Field Validation to the Record View Passing_Data_to_Templ...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Views/index.html
e55f007621df-0
Metadata Overview This page is an overview of the metadata framework for Sidecar modules. View Metadata Framework A module's view-specific metadata can be found in the modules view file: ./modules/<module>/clients/<client>/views/<view>/<view>.php Any edits made in Admin > Studio will be reflected in the file: ./custom/...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Views/Metadata/index.html
e55f007621df-1
'dismiss_label' => true, ), array( 'name' => 'follow', 'label'=> 'LBL_FOLLOW', 'type' => 'follow', 'readonly' => true, 'dismiss_label' => true, ), ) ), ...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Views/Metadata/index.html
e55f007621df-2
'placeholder' => 'LBL_BILLING_ADDRESS_STATE', ), array( 'name' => 'billing_address_postalcode', 'css_class' => 'address_zip', 'placeholder' => 'LBL_BILLING_ADDRESS_POSTALCODE', ...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Views/Metadata/index.html
e55f007621df-3
), array( 'name' => 'copy', 'label' => 'NTC_COPY_BILLING_ADDRESS', 'type' => 'copy', 'mapping' => array( 'billing_address_street' => 'shipping_address_s...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Views/Metadata/index.html
e55f007621df-4
'readonly' => true, 'type' => 'fieldset', 'label' => 'LBL_DATE_MODIFIED', 'fields' => array( array( 'name' => 'date_modified', ), array( ...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/Views/Metadata/index.html
b5fe9c4d7611-0
MainLayout Overview Sugar's Main navigation is split into two components: Top-Header and Sidebar. The Top-Header is primarily used for search, notifications, and user actions and the Sidebar is the primary tool used to navigate the front end of the Sugar application. Layout Components The Main layout is composed of ...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/MainLayout/index.html
b5fe9c4d7611-1
label The label key that contains your link's display text openwindow Specifies whether or not the link should open in a new window route The route to direct the user. For sidecar modules, this is #<module>, but modules in backward compatibility mode are routed as #bwc/index.php?module=<module>. Note: External link...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/MainLayout/index.html
b5fe9c4d7611-2
Secondary Action With the introduction of the sidebar-nav-item component, we're now introducing secondary actions. These appear by way of a kebab menu when hovering on the sidebar-nav-item container to which they are added. Secondary Actions do have some default behavior. If the template has the following markup pr...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/MainLayout/index.html
b5fe9c4d7611-3
'icon' => 'sicon-account-lg', ], ], ], ], ], ], ], ], ], ]; The flyoutComponents array will render all the views that are passed to it. In t...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/MainLayout/index.html
b5fe9c4d7611-4
Home menu dedicated to Dashboards Quick Create menu dedicated to creating new records Home Menu The Home menu view is composed of the sidebar-nav-flyout-module-menu (responsible to display the Secondary Action menus with dashboards and recent items), sidebar-nav-item-module (responsible to display the menu's title) ...
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/User_Interface/MainLayout/index.html
End of preview. Expand in Data Studio

Source: Sugarcrm 13.0 Dev Documentation

The chunks in the files are diffrent splittet based on the tokenizer conained in the name of the file

cl100k_base: 400 Tokens per chunk
p50k_base: 200 Tokens per chunk
Downloads last month
13