Results 1 to 4 of 4

Thread: Drop downs not storing data

  1. #1
    devknob is offline Member
    Join Date
    Apr 2007
    Posts
    8

    Question Drop downs not storing data

    Ive made several custom drop downs and feilds in the Opportunities tab of sugar (renamed to loans)

    When I go to edit view, click on the appropriate drop down selections and press save, no data is saved.

    I've seen several other posts on this issue with no answers - DOES ANYONE HAVE A FIX/SOLUTION HERE?!

    Thanks in advance. - knob

  2. #2
    devknob is offline Member
    Join Date
    Apr 2007
    Posts
    8

    Default Re: Drop downs not storing data

    Sugar Version 4.5.1b (Build 1246)

    Anyone have an idea?

  3. #3
    Barakanooz is offline Sugar Community Member
    Join Date
    May 2006
    Posts
    26

    Cool Re: Drop downs not storing data

    I am using Version 4.2.1b and have gone back to create a few more dropdowns for the opportunities module and I am having the same problem now. Everything shows up fine but the data doesn't get saved. I copied the opportunity_type_dom to make the new ones.

    Here is what I did for Version 4.2.1b

    Edit the /include/language/en_us.lang.php by adding the drop down
    'opportunity_vendor_dom' =>
    array (
    '' => '',
    'blah1' => 'blah1',
    'blah2' => 'blah2',
    'blah3' => 'blah3',
    'Other' => 'Other',
    ),

    Edit the EditView.html and DetailView.html files with
    EditView.html:
    <td class="dataLabel"><slot>{MOD.LBL_CURRENT_VENDOR}</slot></td>
    <td class="dataField"><slot><select tabindex='1' name='opportunity_vendor_type'>{CURRENT_VENDOR_OPT IONS}</select></slot></td>

    DetailView.html:
    <td width="20%" valign="top" class="tabDetailViewDL"><slot>{MOD.LBL_CURRENT_VEN DOR}</slot></td>
    <td width="30%" valign="top" class="tabDetailViewDF"><slot>{CURRENT_VENDOR}&nbs p;</slot></td>

    Edit the EditView.php and DetailView.php files with
    EditView.php:
    $xtpl->assign("CURRENT_VENDOR_OPTIONS", get_select_options_with_id($app_list_strings['opportunity_vendor_dom'], $focus->current_vendor));

    DetailView.php:
    $xtpl->assign("CURRENT_VENDOR", $app_list_strings['opportunity_vendor_dom'][$focus->current_vendor]);

    Added to the vardefs:
    'current_vendor' =>
    array (
    'name' => 'current_vendor',
    'vname' => 'LBL_CURRENT_VENDOR',
    'type' => 'enum',
    'options'=> 'opportunity_vendor_dom',
    'len' => '255',
    'audited'=>true,
    ),

    Added to the Opportunity.php
    var $current_vendor;

    ryan

    ** UPDATE -- funny part is if, in the /include/language/en_us.lang.php file I rename my opportunity_vendor_dom to opportunity_type_dom and remove the opportunity_type_dom definition then it works fine.
    Last edited by Barakanooz; 2007-04-20 at 03:08 PM.

  4. #4
    pblag's Avatar
    pblag is offline Sugar Community Member
    Join Date
    Jul 2006
    Location
    Ukraine (Chernivtsy)
    Posts
    347

    Default Re: Drop downs not storing data

    Hi All!

    you can find the patch for fixing this problem here (v 4.5.1.b)

    patch

    Regards,
    Petro Blagodir
    pblag@blagodir.com
    Blagodir Software (SugarCRM installation customization support)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Drop Downs behave strangely...
    By roblaus in forum Help
    Replies: 3
    Last Post: 2006-12-29, 03:31 PM
  2. Data driven drop downs
    By cburn in forum Help
    Replies: 2
    Last Post: 2006-10-28, 06:34 AM
  3. Replies: 7
    Last Post: 2006-08-23, 05:35 PM
  4. Meetings Module - Add Drop down data not displayed
    By vaishjan in forum General Discussion
    Replies: 0
    Last Post: 2006-07-11, 05:10 AM
  5. Drop downs in portal
    By smelamed in forum Help
    Replies: 2
    Last Post: 2006-03-22, 03:47 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
  •