Results 1 to 3 of 3

Thread: QuickCreate form in subpanel does not create relationship

  1. #1
    johnfd is offline Sugar Community Member
    Join Date
    Mar 2007
    Posts
    15

    Default QuickCreate form in subpanel does not create relationship

    Hi all,

    I' m facing the following issue. I have added a Contacts subpanel in my custom module's detail view with 'Create' and 'Select' buttons to display related contacts. The 'Create' button is configured to display the Contacts QuickCreate form. When I click 'Save' to create a new contact with this form, the contact record is created correctly BUT the relationship between the contact record and my module's record is not saved in the relationship table.

    please help
    SugarCRM OS Version 4.5.1e
    Windows XP Pro SP2
    IIS 5.1
    PHP 5.2.3
    MySQL 5.0.45

  2. #2
    pblag's Avatar
    pblag is offline Sugar Community Member
    Join Date
    Jul 2006
    Location
    Ukraine (Chernivtsy)
    Posts
    347

    Smile Re: QuickCreate form in subpanel does not create relationship

    Hi!

    As rule you have to write your custom code for creating relations in each situation.

    You have to investigate the file

    modules/Contacts/ContactFormBase.php

    there are few examples how to create or update relationships

    hope it will help you
    Petro Blagodir
    petro@blagodir.ua
    http://www.blagodir.com
    Blagodir Ltd.( SugarCRM - Consultations, Development and Support)

  3. #3
    johnfd is offline Sugar Community Member
    Join Date
    Mar 2007
    Posts
    15

    Default Re: QuickCreate form in subpanel does not create relationship

    Hi,

    Thank you for the reply.
    Well, I don't get it. I've already created the files to build the relationship between the Contacts module and my module. And it seems to be ok because I can create related contacts. If I press the 'Select' button in the subpanel, the Contacts popup is shown and I can select records to relate to my module's record and displayed ok. The problem is when I press the 'Create' button and the QuickCreate form is displayed, the contact record that is being created after 'Save' is not related to my module's record. I need again to press the 'Select' button, find the newly created contact and select it.
    I have no problem coding the creation of the relationship between the 2 records if I can hook to the saving process. Is there any code in my module that is being called so I can use it and actually create the relationship when I press 'Save'? Or should I create a new button widget for the 'Create' button?

    Any help would be appreciated
    SugarCRM OS Version 4.5.1e
    Windows XP Pro SP2
    IIS 5.1
    PHP 5.2.3
    MySQL 5.0.45

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. problemi step 6 di SugarSuite-Full-4.0.1h
    By lucia in forum Italiano
    Replies: 0
    Last Post: 2006-12-27, 08:50 AM
  2. Asterisk Patch 1.1.0 Crash on logon
    By skyracer in forum Help
    Replies: 6
    Last Post: 2006-07-08, 06:30 AM
  3. Replies: 7
    Last Post: 2006-06-06, 07:56 PM
  4. 4.0.1 Installation Problem
    By clawton in forum Help
    Replies: 14
    Last Post: 2006-02-13, 04:17 PM
  5. Query erro after 4.0 upgrade
    By ldebernardini in forum Help
    Replies: 20
    Last Post: 2006-01-13, 05:10 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
  •