Results 1 to 4 of 4

Thread: custom field not working

  1. #1
    kinshibuya's Avatar
    kinshibuya is offline A Sugar Hero
    Join Date
    Jul 2008
    Location
    brasil
    Posts
    521

    Default custom field not working

    Hi I added this custom field to
    /sugarcrm/custom/Extension/modules/Cases/Ext/Vardefs/myfield.php
    Code:
    $dictionary["Case"]["fields"]["data_vencimento_c"] = array (
          'required' => '0',
          'source' => 'custom_fields',
          'name' => 'data_vencimento_c',
          'vname' => 'LBL_DATA_VENCIMENTO_C',
          'type' => 'datetime',
          'massupdate' => '0',
          'default' => NULL,
          'comments' => '',
          'help' => '',
          'importable' => 'true',
          'duplicate_merge' => 'disabled',
          'duplicate_merge_dom_value' => '0',
          'audited' => 1,
          'reportable' => 0,
          'id' => 'Casesdata_vencimento_c',
          'custom_module' => 'Cases',
    );
    after that i've done a quick repair /rebuild
    In /custom/modules/Cases/Ext/Vardef/Vardefs.ext.php i have my code.
    But in cache: /cache/modules/Cases/Casesvardefs.php it's not bringing the field!
    what can i do? i already tryed everithing. it seams cache file is not beeing updated. and i already set all permissions to 777.
    Priscila Kin Yamamoto Joranhezon
    Phone: +55 61 32010000
    priscila.joranhezon@nct.com.br
    NCT Informática Ltda

  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 not working

    Quote Originally Posted by kinshibuya View Post
    Hi I added this custom field to
    /sugarcrm/custom/Extension/modules/Cases/Ext/Vardefs/myfield.php
    Code:
    $dictionary["Case"]["fields"]["data_vencimento_c"] = array (
          'required' => '0',
          'source' => 'custom_fields',
          'name' => 'data_vencimento_c',
          'vname' => 'LBL_DATA_VENCIMENTO_C',
          'type' => 'datetime',
          'massupdate' => '0',
          'default' => NULL,
          'comments' => '',
          'help' => '',
          'importable' => 'true',
          'duplicate_merge' => 'disabled',
          'duplicate_merge_dom_value' => '0',
          'audited' => 1,
          'reportable' => 0,
          'id' => 'Casesdata_vencimento_c',
          'custom_module' => 'Cases',
    );
    after that i've done a quick repair /rebuild
    In /custom/modules/Cases/Ext/Vardef/Vardefs.ext.php i have my code.
    But in cache: /cache/modules/Cases/Casesvardefs.php it's not bringing the field!
    what can i do? i already tryed everithing. it seams cache file is not beeing updated. and i already set all permissions to 777.
    Perhaps the cached Cases vardefs is not writeable for some reason.
    Figure it out and try again.

    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
    kinshibuya's Avatar
    kinshibuya is offline A Sugar Hero
    Join Date
    Jul 2008
    Location
    brasil
    Posts
    521

    Default Re: custom field not working

    Well, i tryed, i added some coments on Casesvardefs.php and it was rewrited.
    what i need to know is why it's not getting my custom field. is there anyway to find out?
    i figured cache are build by vardefs.ext.php and module/vardefs. is that correcrt?
    Priscila Kin Yamamoto Joranhezon
    Phone: +55 61 32010000
    priscila.joranhezon@nct.com.br
    NCT Informática Ltda

  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 not working

    Just to clarify:

    Does this custom field you specify on extended vardefs has anything different from the same field you created through Studio?

    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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Quotes not working with the custom field data
    By otto.lang in forum Developer Help
    Replies: 4
    Last Post: 2008-09-29, 07:23 AM
  2. Account field to Custom Module not working
    By andymac in forum Developer Help
    Replies: 0
    Last Post: 2008-01-28, 11:05 PM
  3. Replies: 1
    Last Post: 2007-08-28, 11:38 PM
  4. Replies: 0
    Last Post: 2005-01-21, 06:51 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
  •