Results 1 to 7 of 7

Thread: Auto-fill relate field on custom module?

  1. #1
    leowolff is offline Sugar Community Member
    Join Date
    Apr 2009
    Posts
    126

    Default Auto-fill relate field on custom module?

    Is it possible ao auto fill a related field on a custom module without getting an error like: "No match for field: Account"

    I am using the code below:

    PHP Code:
        'field_to_name_array' => 
                  array (
                    
    'account_name' => 'company'
                      ), 
    The filed is filled with the right info, but when I click save it gives me an error "No match for field: Account". Any hint?

  2. #2
    layman99's Avatar
    layman99 is offline Senior Member
    Join Date
    Jan 2011
    Location
    Shimla
    Posts
    82

    Exclamation Re: Auto-fill relate field on custom module?

    Quote Originally Posted by leowolff View Post
    Is it possible ao auto fill a related field on a custom module without getting an error like: "No match for field: Account"

    I am using the code below:

    PHP Code:
        'field_to_name_array' => 
                  array (
                    
    'account_name' => 'company'
                      ), 
    The filed is filled with the right info, but when I click save it gives me an error "No match for field: Account". Any hint?
    Hello dear,
    i am getting the same problem which u had faced in past . If you got the solution pls. give me suggestion regarding this.
    Dinesh Joshi
    sugarcrm CE 6.1.0
    joshishimla99@gmail.com

  3. #3
    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: Auto-fill relate field on custom module?

    What is the module to which the field is related to?
    Can you tell us which fields you would like to automatically populate?
    Do you want to auto populate through both popup and ajax auto complete?

    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.

  4. #4
    layman99's Avatar
    layman99 is offline Senior Member
    Join Date
    Jan 2011
    Location
    Shimla
    Posts
    82

    Default Re: Auto-fill relate field on custom module?

    Quote Originally Posted by andopes View Post
    What is the module to which the field is related to?
    Can you tell us which fields you would like to automatically populate?
    Do you want to auto populate through both popup and ajax auto complete?

    Cheers
    Thanks andopes , i just completed this problem...and sorry for late rply as i am not able to see this post before.....
    Dinesh Joshi
    sugarcrm CE 6.1.0
    joshishimla99@gmail.com

  5. #5
    mpknol is offline Junior Member
    Join Date
    Mar 2007
    Posts
    4

    Default Re: Auto-fill relate field on custom module?

    Quote Originally Posted by layman99 View Post
    Thanks andopes , i just completed this problem...and sorry for late rply as i am not able to see this post before.....
    And what was your solution? I'm trying to solve a similar problem, and probably others too...
    Thanks!

  6. #6
    catherinema's Avatar
    catherinema is offline Sugar Team Member
    Join Date
    Aug 2008
    Location
    Shanghai, China
    Posts
    103

    Default Re: Auto-fill relate field on custom module?

    Quote Originally Posted by leowolff View Post
    Is it possible ao auto fill a related field on a custom module without getting an error like: "No match for field: Account"

    I am using the code below:

    PHP Code:
        'field_to_name_array' => 
                  array (
                    
    'account_name' => 'company'
                      ), 
    The filed is filled with the right info, but when I click save it gives me an error "No match for field: Account". Any hint?
    Try to add account_id in the array as well.
    竭诚为您提供提供专业的SugarCRM服务

    上海源聚信息技术有限公司
    上海市徐汇区钦州路100号1103室
    Tel: +86-21-3428 0880
    Email: cma@sugar-support.com
    Website:www.sugar-support.com

  7. #7
    ilano1972 is offline Junior Member
    Join Date
    Jan 2012
    Location
    The nertherlands
    Posts
    5

    Default Re: Auto-fill relate field on custom module?

    Quote Originally Posted by catherinema View Post
    Try to add account_id in the array as well.
    I tried this and about everything else that is suggested but i keep getting No match for field
    My situation is:
    sugarcrm 6.1.7
    mysql/linux

    Projects is the module i want to autofill some fields with data from accounts
    My editviewdefs are editted like the following

    PHP Code:
     'lbl_editview_panel1' => 
          array (
            
    => 
            array (
              
    => 
              array (
                
    'name' => 'bedrijf_c',
                
    'displayParams' => 
                array (
                  
    'field_to_name_array' => 
                  array (
                    
    'name' => 'bedrijf_c',
                    
    'billing_address_street' => 'bezoek_adres_c',
                    
    'billing_address_city' => 'bezoek_plaats_c',
                    
    'billing_address_postalcode' => 'bezoek_postcode_c',
                  ),
                  
    'additionalFields' => 
                  array ( 
                  ),
                ),
                
    'studio' => 'visible',
                
    'label' => 'LBL_BEDRIJF',
              ), 
    When i choose the company thru popup i get the error when i save.
    I don't know what i am missing here...

    please help cause it's driving me nuts

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. custom relate field and user module
    By antoni in forum Developer Help
    Replies: 8
    Last Post: 2010-06-17, 02:59 PM
  2. relate field with custom module
    By cooky in forum Developer Help
    Replies: 6
    Last Post: 2008-09-30, 05:51 AM
  3. custom module and relate field
    By thancock in forum Help
    Replies: 5
    Last Post: 2008-08-19, 04:40 PM
  4. Fill in a custom field
    By YamilBracho in forum Help
    Replies: 6
    Last Post: 2007-10-09, 02:18 AM
  5. custom module custom field relate type error
    By kidpollo in forum General Discussion
    Replies: 0
    Last Post: 2007-03-24, 02:14 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
  •