Results 1 to 2 of 2

Thread: Update fields

  1. #1
    Meyer is offline Sugar Community Member
    Join Date
    Oct 2006
    Location
    south africa
    Posts
    646

    Default Update fields

    Hi there

    Created a module one to many. Have a relate to field in another module - work 100%.

    Just wanted to know how i could get that relate to field as a mass update field?

    I have contacts and areas as a new module. lets say i have 107 contacts in new module areas, i do not want to go into each contact and press edit and choose the area? mass update would be the way to go!

  2. #2
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    782

    Default Re: Update fields

    On vardefs.php where this variable should be defined, you has to set the mass update attribute to 1:
    PHP Code:
     'contact' =>
                    array (
                            
    'required' => false,
                            
    'source' => 'non-db',
                            
    'name' => 'contact',
                            
    'vname' => 'Contact',
                            
    'type' => 'relate',
                            
    'massupdate' => 1,
                            
    'len' => '255',
                            
    'id_name' => 'contact_id',
                            
    'ext2' => 'Contacts',
                            
    'module' => 'Contacts',
                            
    'quicksearch' => 'enabled',
                    ), 
    Last edited by rafael.q.g@hotmail.com; 2011-06-14 at 01:52 PM.
    Rafael Queiroz Gonçalves
    Advanced OMG UML Certified Professional
    Sun Certified Enterprise Architect for the Java Platform
    Sun Certified Programmer for the Java 2 Platform
    IBM Certified Advanced Application Developer - Lotus Notes and Domino
    IBM Certified Application Developer - IBM WebSphere Portlet Factory
    Computer Science Mastering / UFSC - PPGCC

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Custom fields do not update (v4.0.1c)
    By tom.denton in forum Help
    Replies: 2
    Last Post: 2010-05-29, 04:58 PM
  2. add fields in Mass Update
    By jenifer in forum Developer Help
    Replies: 2
    Last Post: 2008-06-27, 12:23 PM
  3. Update fields on import
    By catherinejt in forum Help
    Replies: 2
    Last Post: 2007-10-10, 03:05 PM
  4. How to add more fields to mass update
    By hheckner in forum General Discussion
    Replies: 1
    Last Post: 2006-09-22, 11:16 AM
  5. Update Customer fields
    By trilogexpert in forum Help
    Replies: 2
    Last Post: 2006-06-01, 02:39 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
  •