Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Custom field problems

  1. #1
    Ruskicowboy is offline Member
    Join Date
    Feb 2007
    Posts
    7

    Default Custom field problems

    OS: Solaris 10 05/08
    Sugar Version: 5.0.0g CE
    Webserver: Apache 2
    PHP: 5.2.4
    Mysql: 5.0.45

    It seems that Studio sometimes does not alter the {module_name}_cstm table to reflect a new custom field created. I created 5 different fields for Accounts, and only 2 of them were reflected in the table accounts_cstm. When I deleted the other 3 in Studio and recreated them, 2 more were added to the table. I looked at the permissions for the user I'm using to connect to mysql and it has all privileges. But, or course, if it didn't, it couldn't have created or altered the table anyway.

    Also, I added one of the fields to the Accounts listview. it deployed fine, and when other accounts view the listview, it appears without problem. But when I view listview for Accounts, it doesn't display. Any ideas?

  2. #2
    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: Custom field problems

    Hi, Ruskicowboy
    Can you post here the definition for the fields you are trying to create?

    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.

  3. #3
    Ruskicowboy is offline Member
    Join Date
    Feb 2007
    Posts
    7

    Default Re: Custom field problems

    I'm not sure if this is sufficient, but this was what was put into the fields_meta_data table, This was the field I created that was not added to the accounts_cstm table:

    id: Accountsmerchantid_c
    name: merchantid_c
    vname: LBL_MERCHANTID
    comments: The Merchant ID for this Account
    help: NULL
    custom_module: Accounts
    type: int
    len: 11
    required: 0
    default_value: NULL
    date_modified: 2008-08-07 14:02:09
    deleted: 0
    audited: 0
    massupdate: 0
    duplicate_merge: 0
    reportable: 0
    ext1: NULL
    ext2: NULL
    ext3: 1
    ext4: NULL

    This is also the field that shows up fine on other users listview, but not mine.

  4. #4
    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: Custom field problems

    Hi, Ruskicowboy

    It seems to be OK.

    Did you try to repair database?

    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.

  5. #5
    Ruskicowboy is offline Member
    Join Date
    Feb 2007
    Posts
    7

    Default Re: Custom field problems

    Ok, I repaired the database...nothing was shown as wrong. I'll have to creating another field later. Any idea about the field not showing up in Accounts listview in my account only?

  6. #6
    Ruskicowboy is offline Member
    Join Date
    Feb 2007
    Posts
    7

    Default Re: Custom field problems

    Ok, we are still having problems. A co-worker modified the accounts list view and added 3 more columns in Studio. My account still will not show those columns, nor his. Other accounts show all columns correctly, and some show all but one column correctly. Does anyone have any ideas on this? I've cleared all template and vardef caches, and repaired the database. No change.

  7. #7
    chad.hutchins is offline Sugar Community Member
    Join Date
    May 2007
    Location
    Texas
    Posts
    141

    Default Re: Custom field problems

    This is out there, but has worked for me in the past....

    Turn on 'developer mode' in the system settings, go to the accounts list view and refresh, then turn developer mode back off.

  8. #8
    reginanickles is offline Member
    Join Date
    Jul 2008
    Posts
    12

    Exclamation Re: Custom field problems

    I am having similiar problems in Studio adding custom fields in the PROJECT and PROJECT TASKS tables. Sometimes it works, sometimes it doesnt - it's just FLAKEY!!!! My problem is that I add the custom fields, the forms look wonderful, then when I hit the update button - nothing. It's having problems inserting the field, or the fields are just not there, I don't know. I have tried adding the new fields, then went and looked on the CSTM_PROJECT table and they are just not there sometimes, and sometimes it works fine.

    This is very flakey. I never know when it is going to work and when it won't. I just cross my fingers.

    My feeling is that it has something to do with Caching maybe? Memory - I don't know. And I don't know how to even try to troubleshoot this. I have been looking through this forum and on the net. This is a problem in all tables, not just one. If this can't be fixed, we need to document a code change/work around to manually add these custom fields.

    Please advise.

  9. #9
    robhall is offline Junior Member
    Join Date
    Jan 2009
    Posts
    1

    Default Re: Custom field problems

    I also have noticed this problem. I have been testing Sugar 5.2.0 CE on Solaris 10 Update 5. When I try to make some modifications to the layout using Studio it works fine on a Solaris SPARC based server. If I am using
    Solaris 10 on an X64 based server, same release of OS and Sugar and try to do the same actions to modify a layout, edit a dropdown list or make any changes what so ever, nothing gets saved.

    Has anyone else seen this or found what is possible the culprit? Reading this post, I'm going to turn on developer mode logging. Does this get written to the Apache logs for output?

    Thanks much for any input on this thread.

  10. #10
    NickB is offline Sugar Community Member
    Join Date
    Mar 2007
    Posts
    10

    Default Re: Custom field problems

    Im having the same problems with Editing the layouts on an OpenSolaris Shared Server.

    Sugar - Version 5.2.0a.

    I can edit the listview but when editing the editview or detailview none of my changes come though. The custom field that i created in version 4.5.1 works fine in edit view (Ie displays and stores data).

    Also when i test with non custom fields like salutation, or a panel or extra row. None of that works.

    Really frustrating. I have turned on developer mode, repaired and rebuilt everything, chmod'd 777 my customs dir.

    I have also chmod'd 775 my sugarcrm dir.

    Noticed that my customisations from v4.5.1 are visible in my contacts views, and the fields are availale to drag and drop. But, they are not visible in the panel layout. Even when i create another panel and add various fields to it, i get nothing. My logs arent really giving me much in the way of advice
    Last edited by NickB; 2009-02-25 at 05:27 AM.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. custom parent/relate field not saving
    By Marlin in forum Developer Help
    Replies: 7
    Last Post: 2008-07-25, 08:23 PM
  2. Replies: 4
    Last Post: 2007-12-10, 04:49 PM
  3. Replies: 3
    Last Post: 2007-03-13, 07:51 PM
  4. Replies: 7
    Last Post: 2006-06-06, 07:56 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
  •