Results 1 to 10 of 10

Thread: Problem in adding custom fields

  1. #1
    piccirm is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    83

    Default Problem in adding custom fields

    Hi

    follwing the dev guide http://developers.sugarcrm.com/docs/OS/5.1/-docs-Developer_Guides-Developer_Guide_5.1-DevGuide.1.81.html I' ve added some custom fields to Tasks but if I do a Quick Repair nothing happens on the Database
    Only the file /custom/modules/<MODULE_NAME>/Ext/Vardefs/vardefs.ext.php is regularly
    updated
    what should I have still to do ???

  2. #2
    letrium is offline Sugar Community Member
    Join Date
    Dec 2008
    Posts
    614

  3. #3
    piccirm is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    83

    Default Re: Problem in adding custom fields

    exactly! no new filelds are detected during the repair process

  4. #4
    piccirm is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    83

    Default Re: Problem in adding custom fields

    so?....
    I'd avoid to modify vardefs.php

  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: Problem in adding custom fields

    Hi piccirm

    Make sure the SugarCRM folder is recursively writable by the user under which apache is running.
    When adding some code into "custom/Extension/modules/<ModuleName>/Ext/Vardefs/*.php" and going to "Admin -> Repair -> Rebuild Extension" SugarCRM try to copy the changes in this file into "custom/modules/<ModuleName>/Ext/Vardefs/vardefs.ext.php", but if it is not writable nothing happens and SugarCRM does not warn write access issue.

    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
    piccirm is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    83

    Default Re: Problem in adding custom fields

    tks for the reply
    I can see the file "custom/modules/<ModuleName>/Ext/Vardefs/vardefs.ext.php" generated but it seems that no difference with the database are detected
    Should I alter tasks table directly on the DB?

  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: Problem in adding custom fields

    No!

    Make sure the file cache/modules/<ModuleName>/<ClassName>vardefs.php contain the changes.

    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
    piccirm is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    83

    Default Re: Problem in adding custom fields

    During the repair process, monitoring that directory I can see a taskvardefs.php for some seconds but at the end no file is present

  9. #9
    piccirm is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    83

    Default Re: Problem in adding custom fields

    if I perform only rebuild extension I can see the file and contains all the fileds (included the new ones)
    afterthen I perform a DB repair but I do not see any changes to the DB detected (the file is still present)
    I can see in the file on one if the new fileds the following 'custom_module' => 'Tasks' (not present on other fields)
    what is the meaning ?

  10. #10
    piccirm is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    83

    Default Re: Problem in adding custom fields -RESOLVED

    I had to truncate the table fileds_matadata because those add fileds was previously presnte in _cstm table
    now fileds are synched with DB

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Adding custom fields
    By abrassell in forum General Discussion
    Replies: 3
    Last Post: 2009-04-06, 09:27 AM
  2. Adding Data Entry Method when adding custom fields
    By pablo1999 in forum General Discussion
    Replies: 0
    Last Post: 2008-02-07, 05:09 PM
  3. Help - Adding custom fields
    By gacevedo in forum Developer Help
    Replies: 14
    Last Post: 2007-12-28, 10:27 PM
  4. Adding Custom Fields
    By kimken in forum Help
    Replies: 1
    Last Post: 2005-11-11, 06:04 PM
  5. Adding custom fields
    By Antovs in forum Developer Help
    Replies: 0
    Last Post: 2005-05-04, 12:21 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
  •