Results 1 to 10 of 10

Thread: Dropdown menu issue

  1. #1
    jonnywatson is offline Sugar Community Member
    Join Date
    May 2008
    Location
    Leeds
    Posts
    41

    Default Dropdown menu issue

    Hi all,

    I have added a dropdown menu in opportuntines, this replaces the probability text box with a choice of 4 percentages. Everything works correctly apart from when you edit a record to put in the percentage, it doesnt get written to the database. The custom table is created in the DB and the feild of the custom probability is there but no link or data is entered. I have tried repairing the relationships and the whole database but nothing seams to work. BTW its sugar 5.0f......

    Anyone got any ideas?

    Cheers,

    Jonny

    UPDATE: It appears i can not change anything in the opputunities module just tried to change the list layout and nothing is changing...although it has in studio......hmmmmm
    Last edited by jonnywatson; 2008-07-31 at 09:22 AM.

  2. #2
    jonnywatson is offline Sugar Community Member
    Join Date
    May 2008
    Location
    Leeds
    Posts
    41

    Default Re: Dropdown menu issue

    OK so i can now change the layout again...but still cant get my dropdown menu to store in the record.....its not generating the links or the relationships....i think....but i just cant see why....

  3. #3
    jonnywatson is offline Sugar Community Member
    Join Date
    May 2008
    Location
    Leeds
    Posts
    41

    Unhappy Re: Dropdown menu issue

    Nobody can help??

    I cant get it work at all.....

  4. #4
    jonnywatson is offline Sugar Community Member
    Join Date
    May 2008
    Location
    Leeds
    Posts
    41

    Default Re: Dropdown menu issue

    *BUMP*

  5. #5
    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: Dropdown menu issue

    Hi, Jonny.

    Make sure there is an entry for this field in the file cache/modules/Opportunities/Opportunitiesvardefs.php
    Make sure there is an entry for that into fields_meta_data table and make sure there is this field into opportunities_cstm table.

    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.

  6. #6
    jonnywatson is offline Sugar Community Member
    Join Date
    May 2008
    Location
    Leeds
    Posts
    41

    Default Re: Dropdown menu issue

    Yep all those entrys are there....It will allow me to select the value from the drop down menu but when i press save it just isnt writting the data to the tables....

  7. #7
    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: Dropdown menu issue

    Can you paste here the definition for that custom field in the cache/modules/Opportunities/Opportunitiesvardefs.php?

    Post also the defs for this field into editviewdefs.php (custom/modules/Opportunities/metadata/editviewdefs.php)

    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.

  8. #8
    jonnywatson is offline Sugar Community Member
    Join Date
    May 2008
    Location
    Leeds
    Posts
    41

    Default Re: Dropdown menu issue

    Opportunitiesvardefs.php
    'oppprob_list_c' =>
    array (
    'required' => '0',
    'source' => 'custom_fields',
    'name' => 'oppprob_list_c',
    'vname' => 'LBL_OPPPROB_LIST',
    'type' => 'enum',
    'massupdate' => '1',
    'default' => '0%',
    'comments' => '',
    'help' => '',
    'duplicate_merge' => 'disabled',
    'duplicate_merge_dom_value' => '0',
    'audited' => 1,
    'reportable' => 0,
    'len' => 100,
    'options' => 'oppprob_list',
    'studio' => 'visible',
    'id' => 'Opportunitiesoppprob_list_c',
    'custom_module' => 'Opportunities',
    ),
    editviewdefs.php
    array (
    0 =>
    array (
    'label' => 'LBL_ASSIGNED_TO_NAME',
    'name' => 'assigned_user_name',
    ),
    ),
    7 =>
    array (
    0 =>
    array (
    'label' => 'LBL_OPPPROB_LIST',
    'name' => 'oppprob_list_c',
    ),
    1 =>
    array (
    'label' => 'LBL_DESCRIPTION',
    'name' => 'description',

    Hope this helps.....

  9. #9
    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: Dropdown menu issue

    Hi, Jonny.

    Everything seem allright.
    But I believe the options could not have "%" as value.

    Try to change the options key to number only (20) and the values to percentage (20%)

    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.

  10. #10
    jonnywatson is offline Sugar Community Member
    Join Date
    May 2008
    Location
    Leeds
    Posts
    41

    Default Re: Dropdown menu issue

    Hmm...well i have just changed it all from having the % in it to having just a number and its made no difference....i will leave it till monday now i think....

    Thanks for all your help!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Dropdown menu
    By cilla in forum General Discussion
    Replies: 5
    Last Post: 2008-04-29, 09:32 PM
  2. Custom DropDown Menu
    By asimzaidi in forum Help
    Replies: 1
    Last Post: 2007-06-22, 07:19 AM
  3. Dropdown menu in 4.5.1 doesn't appear!
    By pentolino in forum Developer Help
    Replies: 1
    Last Post: 2007-05-04, 06:29 AM
  4. Issue with Record Limit on Member Organizations Sub Menu
    By SponjWorthy in forum General Discussion
    Replies: 3
    Last Post: 2005-05-16, 02:31 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
  •