Results 1 to 5 of 5

Thread: overview of type of fields

  1. #1
    maus is offline Senior Member
    Join Date
    Aug 2008
    Location
    Netherlands, Amsterdam
    Posts
    80

    Default overview of type of fields

    hi all,
    i'm customizing my modules, but i'm looking for an overview on how to create fields.
    for example i'm trying to add a checkbox, i thought it should be something like this:

    $dictionary['Contact']['checkbox']['particulier'] = array (
    'name' => 'particulier',
    'vname' => 'LBL_PARTICULIER',
    'type' => 'bool',
    'comment' => ''
    );

    but this doesn't work, is there maybe a document with an overview of the different fields with corresponding types.
    and other things i need to implement fields.

    thx in advance !
    greetings maurice
    Last edited by maus; 2008-09-04 at 02:10 PM.

  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: overview of type of fields

    Hi Maus

    Use the Studio to create that field.
    You can create custom fields for several modules and Sugar provides a lots of template fields.
    is there any reason to create that field into the default table instead of the custom table?

    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
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: overview of type of fields

    Quote Originally Posted by maus
    hi all,
    i'm customizing my modules, but i'm looking for an overview on how to create fields.
    for example i'm trying to add a checkbox, i thought it should be something like this:

    $dictionary['Contact']['checkbox']['particulier'] = array (
    'name' => 'particulier',
    'vname' => 'LBL_PARTICULIER',
    'type' => 'bool',
    'comment' => ''
    );

    but this doesn't work, is there maybe a document with an overview of the different fields with corresponding types.
    and other things i need to implement fields.

    thx in advance !
    greetings maurice
    $dictionary['Contact']['fields']['particulier'] = array (
    'name' => 'particulier',
    'vname' => 'LBL_PARTICULIER',
    'type' => 'bool',
    'comment' => ''
    );
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

  4. #4
    maus is offline Senior Member
    Join Date
    Aug 2008
    Location
    Netherlands, Amsterdam
    Posts
    80

    Default Re: overview of type of fields

    yes ofcourse i can use the studio...
    there is no reason to do this otherwise.
    thx.

  5. #5
    maus is offline Senior Member
    Join Date
    Aug 2008
    Location
    Netherlands, Amsterdam
    Posts
    80

    Default Re: overview of type of fields

    thx mike i get it now,
    always use fields !

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. You CAN massupdate non-dropdown fields
    By tj@estreet.com in forum Help
    Replies: 0
    Last Post: 2006-10-03, 05:01 PM
  2. Replies: 1
    Last Post: 2006-09-11, 03:38 PM
  3. Replies: 0
    Last Post: 2006-06-10, 04:09 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
  •