Results 1 to 8 of 8

Thread: Drop downs - Unable to save data

  1. #1
    sasben is offline Junior Member
    Join Date
    Jul 2009
    Posts
    4

    Unhappy Drop downs - Unable to save data

    Please bear with me.. I have searched for quite a while but have had no luck,

    Using Studio buildler, I created a new drop down with values. I then created a field that used that specific drop down.

    On the edit screen, i can select values however when I save the item (which reverts back to detail view), the value i set the field to, is lost. When I click edit again, the original value (in this case <blank>) is set.

    I tried to create some other drop down fields, but the same issue occurs.

    Interestingly, any other text field, or in-build dropdown works fine and retains the set value from the edit screen.

    I also added an existing dropdown list ("Industry" - which works in the original field), to a dropdown field that i created and it doesnt retain its set value.

    i.e. Accounts view
    Industry field (in-built), Industry drop down.. works.
    Status field, industry drop down. doesn't save values


    Is there a bug? or something I have done wrong? I did it the same way in an older version of Sugar and it worked fine.

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Drop downs - Unable to save data

    Enabled debug logging under Admin > System Settings, repeat the action that causes the problem and then review the sugarcrm.log file in the root Sugar install directory.

    Sounds like there might be a problem with the SQL query and the log file should yield that error.
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  3. #3
    ros.vol is offline Sugar Community Member
    Join Date
    Dec 2008
    Location
    Eastern Europe / Ukraine / Chernivtsi
    Posts
    114

    Smile Re: Drop downs - Unable to save data

    Hi,

    What version of SugarCRM do u use?

    Cheers,
    Rostyslav Volonchuk

    SugarCRM development and customizations

  4. #4
    sasben is offline Junior Member
    Join Date
    Jul 2009
    Posts
    4

    Default Re: Drop downs - Unable to save data

    Sugar Updates (5.2.0f)

  5. #5
    ros.vol is offline Sugar Community Member
    Join Date
    Dec 2008
    Location
    Eastern Europe / Ukraine / Chernivtsi
    Posts
    114

    Smile Re: Drop downs - Unable to save data

    So, it has stop working after upgrade?
    Rostyslav Volonchuk

    SugarCRM development and customizations

  6. #6
    sasben is offline Junior Member
    Join Date
    Jul 2009
    Posts
    4

    Default Re: Drop downs - Unable to save data

    I upgraded to the latest, then I started to customize.

    Interestingly, I put the sugar log into INFO mode, and found this..


    07/16/09 21:07:46 [2764][1][INFO] Query:UPDATE accounts_cstm SET firstname_c='' ,lastname_c='' ,,entity_c='TEST DROPDOWN ENTRY',SA' WHERE id_c='9341bb22-5390-8e90-76dd-4a5f6fc12e10'
    07/16/09 21:07:46 [2764][1][INFO] Query Execution Time:0.00022792816162109
    07/16/09 21:07:46 [2764][1][ERROR] MySQL error 1054: Unknown column 'firstname_c' in 'field list'
    I created a field called firstname_c, however i didnt place it in the layout editor as yet. The field seems to be normal, and the SQL query above seems okay with the null value, but it says "unknown column".

    Should I delete the field and retry?

  7. #7
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Drop downs - Unable to save data

    Try using the rebuild option in the Admin Control Panel. That usually resolves those type of issues.
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  8. #8
    sasben is offline Junior Member
    Join Date
    Jul 2009
    Posts
    4

    Default RESOLVED: Re: Drop downs - Unable to save data

    I used Angel's suggestion to turn up logging. I set it to INFO, however you could set it to ERROR

    Opened the logfile (use something other than notepad.exe for a better viewing experience), searched for the field value I set, and looked at the next few lines.

    I found

    ERROR] MySQL error 1054: Unknown column 'firstname_c' in 'field list'
    So I deleted that field and re-created it. All fine now.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 2008-11-19, 11:54 AM
  2. Replies: 0
    Last Post: 2008-10-16, 07:21 PM
  3. Drop downs not storing data
    By devknob in forum Help
    Replies: 3
    Last Post: 2007-04-25, 04:05 PM
  4. Data driven drop downs
    By cburn in forum Help
    Replies: 2
    Last Post: 2006-10-28, 06:34 AM
  5. Drop Downs not working
    By greggo in forum Customer Support
    Replies: 0
    Last Post: 2005-12-21, 09:30 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
  •