Results 1 to 4 of 4

Thread: widen bool

  1. #1
    browndogforever is offline Sugar Community Member
    Join Date
    Mar 2007
    Posts
    22

    Default widen bool

    How can I widen the bool field type in the search form?

  2. #2
    arturo@madcap.nl is offline Junior Member
    Join Date
    Mar 2008
    Posts
    3

    Default Re: widen bool

    This is a bit of an odd request. Booleans can either be true or false, 1 or 0. And nothing else.

    How is the bool field displayed now and what would you like to have instead?

  3. #3
    browndogforever is offline Sugar Community Member
    Join Date
    Mar 2007
    Posts
    22

    Default Re: widen bool

    The specific field is the account select field in the opportunities search form. I have several accounts that start of with the same name.

  4. #4
    SugarDev.net is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    1,401

    Default Re: widen bool

    That's not a bool type of field, it's a varchar (text) field. On text fields, size matters .

    this cannot be done via the interface, it has to be done programmatically in the module's editviewdefs.php file. Copy this file to ./custom/modules/<module>/metadata/editviewdefs.php, locate the 'account' field and add:

    PHP Code:
    'displayParams' => array("size" => "40"
    Of course this can be more then 40.

    Enable developer mode before changing this, re-enable if all is OK. If you're having trouble please post your editviewdefs.php file.
    Developers go here
    Businesses go there (Dutch)

    Modules:
    SugarDev.net Developer Tools | Config | Dutch Language Pack
    "Nothing gets fixed unless there is a bug"

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Module Builder
    By Olavo in forum Downloads
    Replies: 418
    Last Post: 2009-02-26, 06:36 AM
  2. How To Widen A Data Field?
    By Altstatten in forum Help
    Replies: 5
    Last Post: 2008-10-15, 04:54 PM
  3. database problems
    By gugachiu in forum Developer Help
    Replies: 1
    Last Post: 2008-04-27, 06:08 AM
  4. Replies: 4
    Last Post: 2007-05-17, 08:39 PM
  5. Replies: 0
    Last Post: 2006-09-19, 07:43 AM

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
  •