Results 1 to 2 of 2

Thread: How to create new table with on-to-many relationship with table contacts?

  1. #1
    sugarkid is offline Member
    Join Date
    Feb 2008
    Posts
    6

    Default How to create new table with on-to-many relationship with table contacts?

    How to create new table with on-to-many relationship with table contacts?

    I create a new table "history" that link to the table contacts. contacts->history is one-to-many relationship. The fields of the history table is contact_id(id of the contact table), history_id, history_name, history_notes, date_modified

    how to modified if I want to use the method of sugar

    $obj_contact = new contact();
    if(!$obj_contact->ACLAccess('Save')){
    return -1;
    }

    $obj_contact->history_name = "value of history name";
    $obj_contact->history_notes = "value of history notes";



    $obj_contact->save();

  2. #2
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: How to create new table with on-to-many relationship with table contacts?

    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. upgraded to 4.5.1e, received "Metadata for table tracker does not exist"
    By sfgeorge in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-09-03, 02:24 PM
  2. problemi step 6 di SugarSuite-Full-4.0.1h
    By lucia in forum Italiano
    Replies: 0
    Last Post: 2006-12-27, 08:50 AM
  3. Asterisk Patch 1.1.0 Crash on logon
    By skyracer in forum Help
    Replies: 6
    Last Post: 2006-07-08, 06:30 AM
  4. 4.0.1 Installation Problem
    By clawton in forum Help
    Replies: 14
    Last Post: 2006-02-13, 04:17 PM
  5. Fatal error: Max
    By spokes2k4 in forum Help
    Replies: 3
    Last Post: 2006-01-15, 03:50 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
  •