Skip to content

Niraj Byanjankar

  • Home
  • Blog
  • Picture Gallery
  • About Me
  • Contact

Include external JavaScript (js) file in editView of SugarCRM

March 22, 2013January 9, 2017 by admin
No comments yet

Include external JavaScript (js) file in editView of SugarCRM

It is very easy to include or embed external JavaScript (js) file with SugarCRM. The included js file can contain all necessary functions for possible events and other purpose through out the scope of  the page.

Steps:

  1. Go to /modules/$Module_Name/metadata/
  2. Open editviewdefs.php file
  3. In templateMeta parameter, add following array

    ‘includes’ =>

    array (

    0 =>
    array (

    ‘file’ => ‘modules/$Module_name/js/extjsfilename.js’,

    ),

    ),

  4. Now, you can use the functions written inside the js file.
  5. Done!
    Note: In templateMeta, you can see other parameters such as form, userTabs, syncDetailEditView, and so on. So, you just need to put above array in between them.

 About SugarCRM

If you are not yet familiar with SugarCRM click on the logo.
create custom sub-panle in sugarcrm

Related Post

How to fix URL Rewrite error with Web Applications...
How to upload multiple files in a document?
How to create custom sub-panels without relationsh...
How to hide View Change Log button from EditView i...
Blog, Javascript, SugarCRM, TechnologyTagged editview, editviewdefs, external, javascript, metadata, sugarcrm, template

Post navigation

Create a custom module in Sugarcrm
How to add icons for a custom module

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How to highlight multiple cells on mouse-over in AngularJS?
  • How to load custom sqlite extension in Laravel 5.0?
  • How to install Composer and Laravel 5 in Linux
  • How to add sub-domain in Apache – Linux
  • Self-signed certificate in Apache – Linux

Recent Comments

  • Samantha Kay on How to install Composer and Laravel 5 in Linux
  • Raspberry PI - Niraj Byanjankar on Autonomous Raspberry Pi based smart Tank
  • admin on Change the field type text to textarea in sugarcrm manually
  • Hemant Aseri on Change the field type text to textarea in sugarcrm manually
  • Tomas Serrano on Change the field type text to textarea in sugarcrm manually

Categories

  • About (1)
  • AngularJS (1)
  • Apache (2)
  • Blog (57)
  • Composer (1)
  • CSS (2)
  • Database (3)
  • Git (3)
  • HTML (1)
  • ideas (5)
  • Javascript (7)
  • Jokes (5)
  • Laravel (2)
  • Linux (3)
  • MSSQL (1)
  • PHP (23)
  • Pictures (1)
  • Queries (1)
  • Questions (6)
  • RaspberryPi (6)
  • Shell Script (2)
  • Sqlite (1)
  • SugarCRM (30)
  • Technology (51)
  • Uncategorized (1)
  • UNIX (8)
  • ZCE (2)

Archives

  • January 2017 (2)
  • January 2016 (3)
  • June 2015 (1)
  • September 2014 (5)
  • August 2014 (5)
  • June 2014 (2)
  • February 2014 (3)
  • December 2013 (6)
  • November 2013 (2)
  • October 2013 (2)
  • September 2013 (3)
  • August 2013 (4)
  • July 2013 (3)
  • June 2013 (2)
  • May 2013 (3)
  • April 2013 (5)
  • March 2013 (10)

Tags

Apache CPU custom custom sub-panel desktop detailView editview editviewdefs email environment fields future git google glass GPU introduction Invalid Value javascript joke jokes linux mac metadata module Opportunities php popup pov raspberry pi raspberrypi remote repository rpi sh shell script smartphone sugarcrm technology temperature template terminal TEXTAREA unix vardefs zce
© Niraj Byanjankar, 2016
  • Home
  • New ideas!
  • Jokes
  • Site Map
  • Sources
  • Contact