Results 1 to 4 of 4

Thread: Relationship between a custom module and contact

  1. #1
    yoann49 is offline Junior Member
    Join Date
    Aug 2011
    Posts
    9

    Default Relationship between a custom module and contact

    Hello,

    Sorry for my english but i'm french.
    I'm working on Sugar and I have a problem to relate my data from my custom module to my contacts when I import it.
    So I create a relationship between my custom module and contact a many to one. After I import my account where I created an ID and then my account with the relationship between the ID's but after when I want to import the date for the custom module they don't ask me to mapp it with the account ID so I don't have any way to do the relationship.

    If someone can help me please. If you don't understand anything just ask me to repeat by an other way.
    Thank you

  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: Relationship between a custom module and contact

    You can import the relationship of contacts and your custom module inserting the relationships directly in your database. There will be a specific that to store this relationship. You could adjust your csv file to be an sql file with insert statments and then execute it over your db.

    Of course this solution requires a little of SQL knowleadge.
    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

  3. #3
    Ramblin is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    98

    Default Re: Relationship between a custom module and contact

    I believe if you want to import the Account to synch, you have to include the ID coilumn with the ID of each Account for which you are importing data.

  4. #4
    yoann49 is offline Junior Member
    Join Date
    Aug 2011
    Posts
    9

    Default Re: Relationship between a custom module and contact

    Thank you for answering.

    I will not be able to do with sql lol.
    And I create the column with the account's ID but they don't ask me to map it so it doesn't work.
    I found an other way, I stoped to work with my custom module and I took an existing one, by this way I can easily do a relationship between my contact and this module. I took the invoice module but the problem is to modify the line items because we cannot do it in the studio and it's kind of hard for me to customize it by the code.
    Thank you, and if you have any idea about the line items in order to customize it, I will be happy.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 2011-07-06, 10:07 AM
  2. Replies: 0
    Last Post: 2010-05-25, 06:36 AM
  3. Custom module Relationship crashes Documents module
    By jwn911 in forum Developer Help
    Replies: 0
    Last Post: 2009-10-29, 09:25 PM
  4. Replies: 4
    Last Post: 2008-04-17, 01:15 PM
  5. relationship-specific custom fields (contact<->account)
    By dbischoff in forum Developer Help
    Replies: 1
    Last Post: 2007-09-26, 10:57 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
  •