Menu
SuiteCRM Pull Request Party hosted by SalesAgility
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: How to get started Developing with SuiteCRM

How to get started Developing with SuiteCRM 3 years 3 weeks ago #31399

  • andy
  • andy's Avatar
  • Offline
  • User is blocked
  • Software Engineer
  • Posts: 886
  • Thank you received: 167
  • Karma: 47
There is very little information out there on how to get started developing with SuiteCRM. This post aims to help point you in the right direction, nothing more.

A good place to start is leanpub.com/suitecrmfordevelopers

You can also look at SugarCRM development Guide: support.sugarcrm.com/Documentation/Sugar..._Developer_Guide_6.5

I have a blog: sugarmods.co.uk/

SuiteCRM is a Fork of SugarCRM CE 6.5.x so at its core is the SugarCRM CE framework. Therefore any information out there that explains how to customise some aspect of SugarCRM CE is also relevant for SuiteCRM (for the most part).

For example if you wanted to create a custom action in a module you would create a custom controller and add your action in there:
developer.sugarcrm.com/2011/02/07/howto-...ler-and-view-classes

support.sugarcrm.com/Documentation/Sugar...work/MVC/Controller/

Examples can be seen in the Projects module of SuiteCRM

Entirely custom Views can be added to modules and existing views can be modified:

support.sugarcrm.com/Documentation/Sugar..._Framework/MVC/View/

If you wanted to add a global action to SuiteCRM you would probably want to create an entry point:
support.sugarcrm.com/Documentation/Sugar...ry_Points/index.html

Of you could add it to the global utils:

support.sugarcrm.com/Documentation/Sugar...ions/Utils/#Overview

If you need to add custom JavaScript to a View: sugarmods.co.uk/adding-custom-javascript-to-a-view-in-sugarcrm/

There is also an extensive range of logic hooks that can be easily utilised :

Module Logic Hooks:

after_delete: Executes after a record is deleted.
after_relationship_add: Executes after a relationship has been added between two records.
after_relationship_delete: Executes after a relationship has been deleted between two records.
after_restore: Executes after a record is un-deleted.
after_retrieve: Executes after a record has been retrieved from the database.
after_save: Executes after a record is saved.
before_delete: Executes before a record is deleted.
before_relationship_add: Executes before a relationship has been added between two records.
before_relationship_delete: Executes before a relationship has been added between two records. before_restore: Executes before a record is un-deleted.
before_save: Executes before a record is saved.
handle_exception: Executes when an exception is thrown.
process_record: Executes when the record is being processed as a part of the ListView or subpanel list.

Example of how to create a Logic Hook: support.sugarcrm.com/Documentation/Sugar...c_Hooks/Introduction

If you want to create a custom Scheduled Task check out: support.sugarcrm.com/Documentation/Sugar...ions/ScheduledTasks/

This is a great post on how to actually work with records within a custom module, action or logic hook using the sugar bean :

developer.sugarcrm.com/2012/03/23/howto-...-of-sql-all-the-time

How to work with the database and execute SQL queries:

support.sugarcrm.com/Documentation/Sugar...es/DBManagerFactory/

Creating a Custom module:

Creating a custom module is fairly straightforward, the best place to start is "Module Builder" in the admin section of SuiteCRM. This will let you create and deploy a basic module. It provides a studio like drag and drop interface where you can add Fields and relationships to your new module. You will then be able to deploy the module straight into your SuiteCRM instance or export the module as an installable package. You cannot create any real custom functionality via module builder, its just basic modules that allow you add and delete records and relate them to existing modules.

However, this provides the perfect starting point for more complex modules which can then be enhanced with controllers, views, logic hooks as out lined above. The structure of the installable package will also show you how to create an installer for SuiteCRM. More info here: support.sugarcrm.com/Documentation/Sugar...er/Package_Examples/

Other useful links:

www.sugaroutfitters.com/blog/how-to-add-...to-views-in-sugarcrm
www.atcoresystems.com/?portfolio=sugarcr...st-development-guide
johndopenotes.wordpress.com/2013/03/05/s...ng-to-user-timezone/
cheleguanaco.blogspot.co.uk
urdhva-tech.blogspot.co.uk/

And the ultimate repository of knowledge which has now been shut down by SugarCRM

web.archive.org/web/20150416100114/http:...ums.sugarcrm.com/f6/
Andrew Mclaughlan
Software Engineer

For SuiteCRM & SugarCRM CE coding tips go to : sugarmods.co.uk

Support the Project - Github Twitter Facebook
Last Edit: 3 years 2 weeks ago by andy.
The administrator has disabled public write access.
The following user(s) said Thank You: pgr, 92641fa944, ppopoca, shaunwhl, nommaz, kumar84, Urbanproof

How to get started Developing with SuiteCRM 3 years 3 weeks ago #31413

  • andy
  • andy's Avatar
  • Offline
  • User is blocked
  • Software Engineer
  • Posts: 886
  • Thank you received: 167
  • Karma: 47
You may also want to turn on Developer Mode in the system settings.

This prevents caching while developing.

Admin > System Settings > Advanced > Developer Mode
Andrew Mclaughlan
Software Engineer

For SuiteCRM & SugarCRM CE coding tips go to : sugarmods.co.uk

Support the Project - Github Twitter Facebook
The administrator has disabled public write access.

How to get started Developing with SuiteCRM 2 years 11 months ago #33615

  • headdowntech
  • headdowntech's Avatar
  • Offline
  • New Member
  • Posts: 2
  • Karma: 0
We are a single point of contact service desk for POS. As the call center manager I am supposed to shape CRM to match our workflow and deliver those service requests to our freelance developer. I do not wish to waste anyone's time because we are new to CRM and I assume we would be reinventing the wheel in many cases. In an effort to respect my dev what are the best resources for fleshed out, tested addons, for SuiteCRM(sugar)?

Specifically I have been trying to bring on board some sort of MOTD or bulletin board (maybe in the form of a dashlet) so all staff members get the same update at the beginning of their shift.

I am sure there are so many other productivity enhancements that would jump out at me were I able to source a list. However, diving into dev forums as a layman is boggling. Where can I find the enhancements you love? All your suggestions are appreciated.
The administrator has disabled public write access.

How to get started Developing with SuiteCRM 2 years 11 months ago #33618

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 9857
  • Thank you received: 1469
  • Karma: 349
@headdowntech

Check out the SuiteCRM Store, the add-ons are there, and they do go through a process to ensure their quality.

This store is a remake of the more complete SugarOutfitters store, making it specific to SuiteCRM. However, maybe the transition is still taking place and there might be somethings you find in SugsarOutfitters that are not yet in SuiteCRM Store, but do work with SuiteCRM. Ask the developers of each in case of doubt.

There is a dashlet in SuiteCRM called My Activity Stream that shows information on what's happening in the system (so users can see signs of other user's actions). You can "post" there something to be seen by all.

There are also dashlets that can be based on any web URL, so if you can just link your company's news page there if you want.

My SuiteCRM In-depth blog.
Thank you for always stating your SuiteCRM version, checking your logs, reading the Docs, and searching before you ask!
The administrator has disabled public write access.
The following user(s) said Thank You: headdowntech

How to get started Developing with SuiteCRM 2 years 11 months ago #33619

  • andy
  • andy's Avatar
  • Offline
  • User is blocked
  • Software Engineer
  • Posts: 886
  • Thank you received: 167
  • Karma: 47
@headdowntech

yep as above: store.suitecrm.com/suitecrm-modules
Andrew Mclaughlan
Software Engineer

For SuiteCRM & SugarCRM CE coding tips go to : sugarmods.co.uk

Support the Project - Github Twitter Facebook
The administrator has disabled public write access.
The following user(s) said Thank You: headdowntech

How to get started Developing with SuiteCRM 2 years 9 months ago #36162

  • shaunwhl
  • shaunwhl's Avatar
  • Offline
  • New Member
  • Posts: 16
  • Thank you received: 4
  • Karma: 0
Thanks @Andy for the great starting point for new suitecrm developers.

How I wish I can find this post 3 months ago!
The administrator has disabled public write access.
The following user(s) said Thank You: andy

How to get started Developing with SuiteCRM 2 years 7 months ago #39022

  • hypoclone
  • hypoclone's Avatar
  • Offline
  • New Member
  • Posts: 1
  • Karma: 0
@andy

Hello am new to suitecrm, please how could I lunch a search into suitecrm from say a form that sends a conact number from my site (example I input a contact number in a form on my site hit enter and it launches suitecrm with that specific contact record of thephone number)

Thank you
The administrator has disabled public write access.

How to get started Developing with SuiteCRM 2 years 6 months ago #40353

  • monzin
  • monzin's Avatar
  • Offline
  • New Member
  • Posts: 6
  • Karma: 0
hypoclone wrote:
@andy

When I explore accounts following warning note was shown. How can I fix this.

Notice: Undefined index: CampaignLog in C:\inetpub\wwwroot\SuiteCRM\include\SearchForm\SearchForm2.php on line 129

Notice: Undefined index: LBL_AOP_INTERNAL in C:\inetpub\wwwroot\SuiteCRM\modules\AOP_Case_Updates\Case_Updates.php on line 305

Notice: Undefined index: AOS_Products_Quotes in C:\inetpub\wwwroot\SuiteCRM\include\SearchForm\SearchForm2.php on line 129

Thank you
The administrator has disabled public write access.

How to get started Developing with SuiteCRM 2 years 6 months ago #40358

  • monzin
  • monzin's Avatar
  • Offline
  • New Member
  • Posts: 6
  • Karma: 0
I already solved it. whatever thank u. :cheer:
The administrator has disabled public write access.

How to get started Developing with SuiteCRM 2 years 6 months ago #40495

  • adamfharris
  • adamfharris's Avatar
  • Offline
  • New Member
  • Posts: 9
  • Karma: 0
Hello,

Can you go into detail about how you fixed this problem. I am having the same one now. Thanks.
The administrator has disabled public write access.

How to get started Developing with SuiteCRM 2 years 6 months ago #40506

  • shaunwhl
  • shaunwhl's Avatar
  • Offline
  • New Member
  • Posts: 16
  • Thank you received: 4
  • Karma: 0
As these are notice not fatal error, what I did was hiding it. If anyone has got a better way to solve this, please share tho.

You can just hide it by turning off error reporting for notice by going to config.php and right after php open tag, add:

error_reporting(E_ALL & ~E_NOTICE);

You can reference to this...php.net/manual/en/function.error-reporting.php
The administrator has disabled public write access.

How to get started Developing with SuiteCRM 2 years 6 months ago #40513

  • adamfharris
  • adamfharris's Avatar
  • Offline
  • New Member
  • Posts: 9
  • Karma: 0
Yeah, I can do that, but it doesn't solve why the error is actually happening... I'm really disappointed no one is solving the root of the issue and just hiding the bug... I'll see if I can get to the bottom of it... Thanks.
The administrator has disabled public write access.

How to get started Developing with SuiteCRM 2 years 6 months ago #40514

  • monzin
  • monzin's Avatar
  • Offline
  • New Member
  • Posts: 6
  • Karma: 0
go to the php folder that you installed it, find the "error_reporting" in php.ini file and edit as following

error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED

update the SuiteCRM to latest version if the above code can't solve.
The administrator has disabled public write access.

How to get started Developing with SuiteCRM 8 months 11 hours ago #71904

  • robert_sinclair
  • robert_sinclair's Avatar
  • Offline
  • Premium Member
  • Posts: 121
  • Thank you received: 16
  • Karma: 3
Great guide, but I would update links that point to sugarcrm site since they no longer work. They removed the content from the site and moved it into the PDF guides instead.
The administrator has disabled public write access.

How to get started Developing with SuiteCRM 8 months 7 hours ago #71912

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 9857
  • Thank you received: 1469
  • Karma: 349
Here are the PDF Guides:

support.sugarcrm.com/Documentation/Unsup...Sugar_6.5/index.html

I also keep a copy of them in case eventually they are removed from the SugarCRM site.

My SuiteCRM In-depth blog.
Thank you for always stating your SuiteCRM version, checking your logs, reading the Docs, and searching before you ask!
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.047 seconds
Powered by Kunena Forum