Results 1 to 5 of 5

Thread: Duplicate custom fields

  1. #1
    ruppsterunicon is offline Junior Member
    Join Date
    Mar 2009
    Posts
    4

    Default Duplicate custom fields

    Here's my setup

    Sugar 4.5.0h (build 1239) Opensource
    apache 2
    mysql 4.1.20
    php 5.1.1
    Server: RHEL 4


    I'm trying to add 5 custom fields to the accounts module then in place them on the Detail and Edit views using studio. I've viewed the online documentation for creating custom fields and all seems fairly easy. I'm able to create the custom fields without issue. Then I go into Edit Layout and update the Detail view. First I add about 6 empty rows and save that. Then I add the 5 new custom fields to the Detail view on the right column of those added row...things look fine then. But after I save that configuration 4 of the 5 fields appear twice... once where I put it in the right column of one row and then again in the left column of the row below.

    This is happening in our production environment as well as a test environment. Am I doing something wrong? Or maybe hitting on a bug? I've done some searches in the forums and didn't see anything similar to what i'm seeing. Anyone have any ideas?

    Thanks,
    Greg
    ~
    Last edited by ruppsterunicon; 2009-03-05 at 10:44 PM. Reason: Adding more info

  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: Duplicate custom fields

    Hi Greg

    Edit the DetailView.html and EditView.html and look for the custom fields you had added.
    You will probably see spams elements containing the same slot, for example:

    HTML Code:
    <span sugar='slot3b'>
    When you drag a field from field list and drop into a cell in the layout into Studio, SugarCRM add that field into the slot related to that cell. If there are two or more cell containing the same slot SugarCRM will copy that custom field to all of them.

    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
    ruppsterunicon is offline Junior Member
    Join Date
    Mar 2009
    Posts
    4

    Default Re: Duplicate custom fields

    André

    Thanks for your reply. I do indeed see what you mention in the DetailView.html file. What I have looks like this for some of my custom fields:

    HTML Code:
    <td  valign="top" class="tabDetailViewDL"            colspan="1"><span sugar='slot90'>{MOD.CAS_Support_c_0}</span sugar='slot'></td>
    <td  valign="top"  class="tabDetailViewDF"            colspan="1"><s pan sugar='slot90b'>{CAS_SUPPORT_C}</span sugar='slot'></td></tr><tr>
    <td  valign="top" class="tabDetailViewDL"             colspan="1"><span sugar='slot96'>&nbsp;</span sugar='slot'></td>
    <td  valign="top"  class="tabDetailViewDF"             colspan="1"><span sugar='slot96b'>&nbsp;</span sugar='slot'></td>
    <td  valign="top" class="tabDetailViewDL"             colspan="1"><span sugar='slot97'>{MOD.CAS_Support_Expiration_c}</span sugar='slot'></td>
    <td  valign="top"  class="tabDetailViewDF"             colspan="1"><span sugar='slot97b'>{CAS_SUPP_EXP_C}</span sugar='slot'></td></tr><tr>
    <td  valign="top" class="tabDetailViewDL"             colspan="1"><span sugar='slot97'>{MOD.CAS_Support_Expiration_c}</span sugar='slot'></td>
    <td  valign="top"  class="tabDetailViewDF" colspan="1"><span sugar='slot97b'>{CAS_SUPP_EXP_C}</span sugar='slot'></td>
    <td  valign="top" class="tabDetailViewDL"             colspan="1"><span sugar='slot98'>{MOD.CAS_Version_in_Use_c_1} </span sugar='slot'></td>
    <td  valign="top"  class="tabDetailViewDF"             colspan="1"><span sugar='slot98b'>{CAS_VERSION_IN_USE_C}</span sugar='slot'></td></tr><tr>
    <td  valign="top" class=" tabDetailViewDL"             colspan="1"><span sugar='slot98'>{MOD.CAS_Version_in_Use_c_1}</span sugar='slot'></td>
    <td  valign="top"  class="tabDetailViewDF"             colspan="1"><span sugar=' slot98b'>{CAS_VERSION_IN_USE_C}</span sugar='slot'></td>
    <td  valign="top" class="tabDetailViewDL"             colspan="1"><span sugar='slot99'>{MOD.CAS_Support_Hours_c_0}</span sugar='slot'></td>
    <td  valign="top"  class="tabDetailViewDF"             colspan="1"><span sugar='slot99b'>{CAS_SUPP_HOURS_C}</span sugar='slot'></td></tr><tr>
    <td  valign="top" class="tabDetailViewDL" colspan="1"><span sugar='slot99'>{MOD.CAS_Support_Hours_c_0}</span sugar='slot'></td>
    <td  valign="top"  class="tabDetailViewDF"             colspan="1"><span sugar='slot99b'>{CAS_SUPP_HOURS_C}</s pan sugar='slot'></td>
    <td  valign="top" class="tabDetailViewDL"             colspan="1"><span sugar='slot100'>{MOD.Additional_CAS_Support_Hours_c}</span sugar='slot'></td><td  valign="top"  class
    I edited it make it easier to read. In this example the "CAS Support" field only shows up once but "CAS Version in Use", "CAS Support Expiration" and "CAS SUpport Hours" show up twice.

    Not sure what to edit in this to remove the extra field. Say for the field "CAS Support Expiration" ... what should I edit/remove?

    Thanks!
    Greg

  4. #4
    ruppsterunicon is offline Junior Member
    Join Date
    Mar 2009
    Posts
    4

    Default Re: Duplicate custom fields

    I tried a new approach that has been successful. Before I was adding 6 new rows then tried to add all of my 5 new fields at the same time With the new approach I tried adding just two rows and then add the 1st new field to the first of those two row and then saved. If there was a duplicate field added to the second row I would just delete that second row. Then repeat that process until I have all the new fields added. Pretty tedious but seems to works.

  5. #5
    blastmultimedia is offline Junior Member
    Join Date
    Apr 2009
    Posts
    3

    Default Re: Duplicate custom fields

    Hi, i am trying to do the same thing...

    so rhat means that an add button would never exist ?

    My thread: http://www.sugarcrm.com/forums/showt...660#post163660

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-05-28, 12:12 AM
  2. Duplicate Merge Custom Fields
    By ttrotter in forum Help
    Replies: 1
    Last Post: 2008-03-22, 07:13 PM
  3. Replies: 5
    Last Post: 2007-11-16, 04:10 PM
  4. Replies: 1
    Last Post: 2007-06-21, 11:30 AM
  5. Replies: 2
    Last Post: 2007-01-18, 05:44 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
  •