Results 1 to 5 of 5

Thread: custom dropdown per project

  1. #1
    robbrandt is offline Member
    Join Date
    Dec 2008
    Posts
    9

    Default custom dropdown per project

    I am a software developer wanting to use Sugar in our organization. Most of my projects are software projects.

    I have modified the Project tasks module in Studio so that there is a dropdown in which the software component is identified within the tasks. It's functioning well as such, but I now realize that this dropdown will show up in all of my projects. But each project has it's own, completely different set of components. How do I set it up so that each project has it's own components - it's own dropdown?

    In a related issue, it seems like I might be able to use the bugtracker for my own projects, not for bugs in Sugar per se. I would like to be able to select a project and component instead of a category for each bug. Also, "releases" seems to be a global value as well, when it should actually be on a project by project basis as well.

    can I do these things? How?

    Thanks.

  2. #2
    mvngti is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    South Africa
    Posts
    510

    Default Re: custom dropdown per project

    Have a look at this project - http://www.sugarforge.org/projects/enhancedstudio/

    It adds a field type "Code" that can run arbitrary php code to render a field. You could use it to run the code to create or populate the dropdowns with the correct values every time a record is rendered.

    The only other alternative is to use logic hooks or custom logic in the module's object to populate the dropdown lists which also works but is more difficult.

    M
    --


    Marnus van Niekerk

    There are only 10 types of people in the world
    those who can read binary and those who don't

    Modules:
    CE Teams - Upgrade safe teams module for Community Edition
    FieldACL - Field Level Access Control for Community Edition
    EditLogicHooks - Create and edit Logic Hooks from the Admin GUI
    FlexibleChartDashlet - Display any data in a Dashlet Chart
    DocumentThumbnails - Thumbnails for Documents module

    Many questions can be answered by reading the Developers Manual

  3. #3
    robbrandt is offline Member
    Join Date
    Dec 2008
    Posts
    9

    Default Re: custom dropdown per project

    Could I use it to select which dropdown is displayed? That way I'd only have to touch code when I have a new project. I could manage dropdown content itself in Studio.

  4. #4
    robbrandt is offline Member
    Join Date
    Dec 2008
    Posts
    9

    Default Re: custom dropdown per project

    Hmm, this appears to be commercial(?). I work for a non-profit, I won't get budget for that

  5. #5
    mvngti is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    South Africa
    Posts
    510

    Default Re: custom dropdown per project

    Pretty sure you would be able to use the demo version if you contact the developer.

    The alternative is to modify the (1) field_defs or (2) dropdown in the objects constructor.

    1) The object will have an array of fields called $field_name_map - every entry is a field with an array of elements - every field that is a dropdown has an element 'options' in the array that specify which dropdown list to use. If you change options element it will use a different dropdown.

    2) The actual dropdowns are saved in $app_list_strings['dropdown_name'] so altering that array will alter the options available to the field.
    --


    Marnus van Niekerk

    There are only 10 types of people in the world
    those who can read binary and those who don't

    Modules:
    CE Teams - Upgrade safe teams module for Community Edition
    FieldACL - Field Level Access Control for Community Edition
    EditLogicHooks - Create and edit Logic Hooks from the Admin GUI
    FlexibleChartDashlet - Display any data in a Dashlet Chart
    DocumentThumbnails - Thumbnails for Documents module

    Many questions can be answered by reading the Developers Manual

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 2008-07-08, 01:06 PM
  2. Cannot create custom dropdown
    By phantomx2 in forum Help
    Replies: 1
    Last Post: 2007-06-26, 09:28 PM
  3. Custom DropDown Menu
    By asimzaidi in forum Help
    Replies: 1
    Last Post: 2007-06-22, 07:19 AM
  4. Custom dropdown in Meetings
    By tech in forum Help
    Replies: 9
    Last Post: 2007-04-24, 08:08 AM
  5. Replies: 0
    Last Post: 2006-11-29, 06:59 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
  •