Results 1 to 4 of 4

Thread: Relate field linking to Users

  1. #1
    prajeesh is offline Senior Member
    Join Date
    Jun 2009
    Posts
    64

    Default Relate field linking to Users

    Hi ,


    I need to add a 'Relate' field in 'Accounts' Module. This relate field should be mapped to users table. that is, while clicking 'Select' button i should be able to get all the users in the system. But I am not able to find an option to create 'Relate' fields linking to 'Users' table. If any one has an idea , please advice me.

    Thank you in advance for your help

    Prajeesh

  2. #2
    josh.sweeney is offline Sugar Community Member
    Join Date
    Apr 2008
    Location
    Ga
    Posts
    339

    Default Re: Relate field linking to Users

    Prajeesh,

    Create an empty file called studio.php and put it in modules/accounts/metadata and verify that it gives you the functionality that you need.

    Once you verify that it works you will need to move the file to custom/modules/accounts/metadata to make it upgrade safe.

  3. #3
    prajeesh is offline Senior Member
    Join Date
    Jun 2009
    Posts
    64

    Default Re: Relate field linking to Users

    hi josh,

    i think you meant to say that studio.php is to be put in modules/users/metadata/. I have done like this . and I was able to create a relate field which will popup users . but the autfill does not do any filtering. Also it displays Name instead of user_name. Please help me.

    Thanks,
    Prajeesh.

  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: Relate field linking to Users

    Hi Prajeesh

    There is a possible workaround:
    Create a relate field with some other module.
    Sugar will create two custom fields into Accounts module.
    Go to table fields_meta_data through some database GUI (phpMyAdmin for MySQL) and edit the fields to get them related to Users.

    Regards
    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. Replies: 17
    Last Post: 2010-05-25, 08:04 AM
  2. Replies: 6
    Last Post: 2010-03-05, 12:38 PM
  3. Custom Module - Name field not linking to record
    By robert.blasingame in forum Help
    Replies: 5
    Last Post: 2008-01-31, 07:30 PM
  4. linking Accounts to Users from Accounts Edit Module
    By ghight in forum Developer Help
    Replies: 0
    Last Post: 2006-03-24, 10:15 PM
  5. Task activities linking with another module's date field
    By kevinjj33 in forum Developer Help
    Replies: 1
    Last Post: 2006-01-04, 09:45 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
  •