Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: i done custom relationships it create relationship table but not show subpanel?

  1. #1
    shrisamsalunke is offline Sugar Community Member
    Join Date
    Dec 2011
    Posts
    46

    Default i done custom relationships it create relationship table but not show subpanel?

    hello everyone,
    i created custom relationship between contacts and notes, it create contacts_notes_c table in database but in contacts detail view i can't see notes subpanel.
    i refer this link SugarCRM many-to-one relations to standard modules - Lone Wolves - Web, game, and open source development

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: i done custom relationships it create relationship table but not show subpanel?

    There is already two possible relationships between Contacts and Notes:
    • parent_type/parent_id
    • contact_id


    What is the need to create a third one?

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    shrisamsalunke is offline Sugar Community Member
    Join Date
    Dec 2011
    Posts
    46

    Default Re: i done custom relationships it create relationship table but not show subpanel?

    hi andopes,
    i used community edition and whatever relationship table i created is perfect for me i juz want to see notes subpanel in contact details view so can you help me for showing subpanel by coding.........and thanks to rply me...........

  4. #4
    heta's Avatar
    heta is offline Sugar Community Member
    Join Date
    Nov 2007
    Location
    Ahmedabad,India
    Posts
    214

    Default Re: i done custom relationships it create relationship table but not show subpanel?

    was that a one to many relationship? AFAIK, if you have one contact has many notes, you should see the subpanel in detail view of contact.

    second check would be, just all files check custom/Extension/modules/Contacts/Ext/Layoutdefs/ and check if you have a subpanel definition for Notes or not?
    Best Regards
    ---------------------------------------
    Heta Shah - iNET PROCESS
    heta.shah@inetprocess.com
    http://www.inetprocess.co.in
    Projects :
    iNETDocs -Project of the month(Dec-2008)
    iNETGoogleMap

  5. #5
    shrisamsalunke is offline Sugar Community Member
    Join Date
    Dec 2011
    Posts
    46

    Default Re: i done custom relationships it create relationship table but not show subpanel?

    hi heta,
    this is my one to many relationship in sugar log file i get below errors
    Wednesday 01 February 2012 08:02:05 AM CET [3792][1][FATAL] Error fetching relationship from cache notes_contacts
    Wednesday 01 February 2012 08:02:05 AM CET [3792][1][FATAL] Error fetching relationship from cache notes_contacts
    Wednesday 01 February 2012 08:02:05 AM CET [3792][1][FATAL] Error fetching relationship from cache notes_contacts


    so i can't understand why this take relation note_contacts i want contacts_notes...............so if you know solution pls tell me.............and thanks to rply me

  6. #6
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: i done custom relationships it create relationship table but not show subpanel?

    Make sure there is a relationship definition at custom/metadata
    Delete the script cache/modules/Relationships/Relationship.cache.php
    Do a quick repair and rebuild

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  7. #7
    shrisamsalunke is offline Sugar Community Member
    Join Date
    Dec 2011
    Posts
    46

    Default Re: i done custom relationships it create relationship table but not show subpanel?

    hi andopes,
    after rebuild relationships and Quick Repair and Rebuild my subpanel is shown in detailsview but i can't understand what exactly happen internally after rebuild or repair and i found one error above my subpanel that is

    Warning: mysqli_query() [function.mysqli-query]: Empty query in /opt/lampp/htdocs/CRM/include/database/MysqliManager.php on line 164
    Attached Images Attached Images  

  8. #8
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: i done custom relationships it create relationship table but not show subpanel?

    The query is empty because your relationship, or related fields, are buggy.
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  9. #9
    shrisamsalunke is offline Sugar Community Member
    Join Date
    Dec 2011
    Posts
    46

    Default Re: i done custom relationships it create relationship table but not show subpanel?

    hi,
    i checked my contacts_notesMetadata.php file in both side custom/metadata and metadata but lhs and rhs values are correct so..................where i have to change for this issue..............pls guide me

  10. #10
    andywest is offline Sugar Community Member
    Join Date
    Sep 2011
    Posts
    41

    Default Re: i done custom relationships it create relationship table but not show subpanel?

    Can you attach all the files you have created

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 2012-01-25, 09:33 AM
  2. create a subpanel that will show custom php page
    By eitrix in forum Developer Help
    Replies: 3
    Last Post: 2010-12-02, 01:06 PM
  3. one-many relationships - studio creates a relationship table
    By mikesolomon in forum Developer Help
    Replies: 8
    Last Post: 2008-10-24, 02:38 PM
  4. create custom subpanel with new DB table
    By Barakanooz in forum Help
    Replies: 0
    Last Post: 2006-05-17, 12:34 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
  •