Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By ramesh83

Thread: problem getting the value of a related field

  1. #1
    garciasanchezdaniel's Avatar
    garciasanchezdaniel is offline Sugar Community Member
    Join Date
    Aug 2011
    Location
    Spain
    Posts
    403

    Default problem getting the value of a related field

    hello friends, I am having the same problem than the partner described in this thread:
    http://www.sugarcrm.com/forums/f6/do...55/index2.html
    anybody know the solution?
    Thanks, Daniel

  2. #2
    ramesh83 is offline Sugar Community Member
    Join Date
    May 2009
    Location
    Hyderabad
    Posts
    92

    Thumbs up Re: problem getting the value of a related field

    Hi ,
    Just now i got the same problem and finally it resolved for me as in listviewdefs i added a small code

    'ACCOUNTNAME' =>
    array (
    'width' => '10',
    'label' => 'LBL_ACCOUNTNAME',
    'id' => 'ACCOUNT_ID',
    'module' => 'Accounts',
    'link' => true,
    'default' => true,
    //code added here -- start
    'related_fields' => array('account_id'),
    //code added here -- end

    ),

    After adding code once repair & rebuild

  3. #3
    garciasanchezdaniel's Avatar
    garciasanchezdaniel is offline Sugar Community Member
    Join Date
    Aug 2011
    Location
    Spain
    Posts
    403

    Talking Re: problem getting the value of a related field

    Quote Originally Posted by ramesh83 View Post
    Hi ,
    Just now i got the same problem and finally it resolved for me as in listviewdefs i added a small code

    'ACCOUNTNAME' =>
    array (
    'width' => '10',
    'label' => 'LBL_ACCOUNTNAME',
    'id' => 'ACCOUNT_ID',
    'module' => 'Accounts',
    'link' => true,
    'default' => true,
    //code added here -- start
    'related_fields' => array('account_id'),
    //code added here -- end

    ),

    After adding code once repair & rebuild
    Hey ramesh, thanks so much for your reply. Now it works!!
    The solution was not exactly that you posted, but without your post I had not solved it
    Previously, I removed the field NAME of listviewdefs.php, because in my module I don't need this field to be displayed in list views , for this motive, related field can not get the value of any record.
    Adding the field NAME in order to be displayed in list view was the solution!!
    Thanks so much ramesh
    Daniel
    Last edited by garciasanchezdaniel; 2011-10-04 at 01:51 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. custom related field (add new button to this field)
    By garciasanchezdaniel in forum Help
    Replies: 5
    Last Post: 2011-09-24, 05:02 PM
  2. Replies: 0
    Last Post: 2011-04-07, 07:56 AM
  3. Problem with Related To Field
    By andrew.philp in forum Help
    Replies: 1
    Last Post: 2009-06-09, 11:14 AM
  4. Related field
    By Plata in forum Help
    Replies: 1
    Last Post: 2009-01-15, 03:24 PM
  5. Replies: 1
    Last Post: 2008-03-25, 11:58 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
  •