Results 1 to 6 of 6

Thread: Adding user field for purposes other than "assigned to"

  1. #1
    ZeeG is offline Sugar Community Member
    Join Date
    May 2011
    Posts
    14

    Default Adding user field for purposes other than "assigned to"

    I've been trying to create a module in SugarCRM which requires several fields to be filled in with the names of employees.

    Am I able to place a field similar to "assigned to", where as you type, it searches the list of employees to pick one out, rather than just a plain textfield?

    Version: 6.0.2 Professional

    Thanks,
    Zee

  2. #2
    ashdwi1's Avatar
    ashdwi1 is offline Sugar Community Member
    Join Date
    May 2008
    Location
    Noida
    Posts
    198

    Default Re: Adding user field for purposes other than "assigned to"

    Hello,
    assigned to field is coming from base package of module.
    so it is already in all modules.
    you can use this field anywhere in your modules.
    please let me know if you have questions.
    thanks
    Almost available at skype or gtalk at ashdwi1.

    SugarForge Project:
    http://www.sugarforge.org/projects/gmapdirection
    Email: ashdwi1@gmail.com
    Mob: +919005468298

    Hire us at Odesk at
    https://www.odesk.com/users/~~b9eff8ff219fd705

    Hire Us at Elance at:
    http://ashdwi1.elance.com

  3. #3
    ZeeG is offline Sugar Community Member
    Join Date
    May 2011
    Posts
    14

    Default Re: Adding user field for purposes other than "assigned to"

    Quote Originally Posted by ashdwi1 View Post
    Hello,
    assigned to field is coming from base package of module.
    so it is already in all modules.
    you can use this field anywhere in your modules.
    please let me know if you have questions.
    thanks
    Thanks, but I need the field to be on the page 3 times. For separate things, such as:

    Pricing Provided by:
    Main contact:
    Peer Checked by:

    All of these fields only require 1 person as well.

    Thanks,
    Zee

  4. #4
    ashdwi1's Avatar
    ashdwi1 is offline Sugar Community Member
    Join Date
    May 2008
    Location
    Noida
    Posts
    198

    Default Re: Adding user field for purposes other than "assigned to"

    Hello,
    as user module is not availlable in stduio , you need to do work with vardefs extensions.

    you need to create 2 fields for one new field to relate user module.

    here are sample for one new field.

    $dictionary["Case"]["fields"]['created_by_others'] =
    array (
    'name' => 'created_by_others',
    'rname' => 'name',
    'type' => 'relate',
    'dbType' => 'id',
    'rname' => 'id',
    'module' => 'Users',
    'id_name' => 'created_by_others',
    'reportable'=>false,
    'vname'=>'LBL_OTHER_ID',
    'audited'=>true,
    'massupdate' => false,
    );


    $dictionary["Case"]["fields"]['created_by_others_name'] =
    array (
    'name' => 'created_by_others_name',
    'rname' => 'name',
    'id_name' => 'created_by_others',
    'vname' => 'LBL_ACCOUNT_NAME_C',
    'type' => 'relate',
    'link'=>'users',
    'table' => 'users',
    'join_name'=>'users',
    'isnull' => 'true',
    'module' => 'Users',
    'dbType' => 'varchar',
    'len' => 100,
    'source'=>'non-db',
    'unified_search' => true,
    'comment' => 'The name of the account represented by the account_id field',
    'required' => true,
    'importable' => 'required',
    'studio' =>'visible',
    );

    please let me know if any further queries.
    thanks
    Almost available at skype or gtalk at ashdwi1.

    SugarForge Project:
    http://www.sugarforge.org/projects/gmapdirection
    Email: ashdwi1@gmail.com
    Mob: +919005468298

    Hire us at Odesk at
    https://www.odesk.com/users/~~b9eff8ff219fd705

    Hire Us at Elance at:
    http://ashdwi1.elance.com

  5. #5
    ZeeG is offline Sugar Community Member
    Join Date
    May 2011
    Posts
    14

    Default Re: Adding user field for purposes other than "assigned to"

    thanks heaps for that

  6. #6
    item is offline Sugar Community Member
    Join Date
    Oct 2010
    Location
    BELGIUM
    Posts
    193

    Default Re: Adding user field for purposes other than "assigned to"

    Hi,
    A little late for me...

    nice tips but in 6.2, we have the possibility to make relation to users module.
    see release note.

    Regards.
    CE 6.2.4
    Osx Server 10.5.8
    Apache - MySql - Php built-in
    sorry for my good english

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. User mix up in "Assigned to" field
    By benano in forum Developer Help
    Replies: 8
    Last Post: 2011-09-07, 08:59 AM
  2. Replies: 10
    Last Post: 2009-12-02, 09:10 PM
  3. Replies: 0
    Last Post: 2008-12-22, 09:58 AM
  4. Adding another "assigned user"
    By oleko in forum Developer Help
    Replies: 0
    Last Post: 2006-04-07, 07:17 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
  •