Results 1 to 2 of 2

Thread: Help with the Opportunities-Contacts relationship

  1. #1
    shanrocks is offline Sugar Community Member
    Join Date
    Oct 2007
    Posts
    21

    Default Help with the Opportunities-Contacts relationship

    I hope someone out there can give me a hand with this. I'm working with Sugar 5.0 RC, but this is probably applicable to 4.5.1 as well. I've also been working with both Linux and Windows platforms, but I don't think that is relevant.

    I'm developing a couple of modules that have a relationship similar to the one found between Opportunities and Contacts. That is, the relationship itself has an additional field. In the case of Opportunties and Contacts, that field is the role of the Contact in the Opportunity.

    I'm pretty sure I've set up my own relationship correctly - the correct information appears to be saved in the appropriate table in the database, so that is all good. The problem I am currently having deals with displaying the value in the subpanel.

    I can't find the place where this value is retrieved from the database. I find some field definitions in Contacts (opportunity_role_fields, opportunity_role_id, opportunity_role) and the same fields listed in the ForOpportunities subpanel definition. I have no idea how or where these fields are populated.

    Also, I see that the Opportunity class file (Opportunity.php) has a function named get_contacts. It looks like this would pull out some relevant information... but when I modify the function to output to the log when this function is called, I never see it. When does get_contacts get called? Or is this just old code?

    If anyone has any experience with this type of development, I would really appreciate the assistance.

    Thanks!

  2. #2
    mclemmens is offline Junior Member
    Join Date
    Dec 2007
    Posts
    3

    Default Re: Help with the Opportunities-Contacts relationship

    Yes, I'm trying to do this as well. From what I've found so far, it's very difficult to customize the system. There was talk a long time ago (starting around version 3) to make a B2C as well as B2B mode, but that never materialized.

    If I find anything I'll post it here.

    Best,
    Mac

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. Replies: 7
    Last Post: 2006-06-06, 07:56 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
  •