Results 1 to 3 of 3

Thread: Customizing Sugar - Adding new dropdown field

  1. #1
    sandadps is offline Junior Member
    Join Date
    Feb 2009
    Posts
    2

    Default Customizing Sugar - Adding new dropdown field

    I want to customize the "Bugs" module. I want to include a new dropdown field called "Projects" which should display all the projects created by users. Any new project added by any user should appear into the dropdown immediately. How do I do this? Please give me some idea. I have gone through "Sugar Installation and Administration Guide" and have seen that it is possible to select any one out of the predefined dropdowns (like product_category_dom which displays the list of all the product categories).

  2. #2
    sandadps is offline Junior Member
    Join Date
    Feb 2009
    Posts
    2

    Default Re: Customizing Sugar - Adding new dropdown field

    Also once this display of dropdown is done, I want to do some change in functionality.

    Existing functionality:
    As you have probably seen, by default, if a bug is reported there is no option to associate it to any project. However, going to the "Projects" section and selecting any project shows the "bugs" section in the bottom where we can select a bug and it gets associated with the project.


    Change in functionality (I want):

    I want that while reporting a bug, assuming that user gets to chose a project name from the projects dropdown (in the report bug form), the bug should get associated to the selected project (when the user submits the form).


    I am very much new to Sugar and have tried to go through the code but it looks so puzzling to me ... so many classes... and functions... I currently have no idea where to make changes to fulfill my requirement. Please help.

  3. #3
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Customizing Sugar - Adding new dropdown field

    Quote Originally Posted by sandadps View Post
    I want that while reporting a bug, assuming that user gets to chose a project name from the projects dropdown (in the report bug form), the bug should get associated to the selected project (when the user submits the form).
    You need to create a logic_hook before_save into Bugs module to create a relationship between the current bug and the selected project.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 2009-03-25, 09:47 AM
  2. Replies: 15
    Last Post: 2008-03-14, 08:59 AM
  3. Adding a dropdown in 4.5 Pro
    By coredial in forum Help
    Replies: 2
    Last Post: 2006-09-11, 03:19 PM
  4. Adding dropdown to a layout
    By deanloh in forum General Discussion
    Replies: 1
    Last Post: 2006-04-17, 06:39 AM
  5. Replies: 0
    Last Post: 2005-01-26, 10:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •