Results 1 to 5 of 5

Thread: Subpanel 2 level relationship

  1. #1
    costelc is offline Sugar Community Member
    Join Date
    Jul 2010
    Posts
    20

    Default Subpanel 2 level relationship

    Hi. I have 2 custom related modules, and one of them has a relation with Leads. So it's like this:
    A -> B -> Leads

    I want to put a subpanel with the Leads in the A detailview, and I've seen suggestions to look into the Campaigns example. I did so and added a function based subpanel in the A subpaneldefs, and created a custom function for that. I manage to load a 1 level relationship in this function, but I don't know how to do that for 2 levels. Can anyone be so kind to give me a quick example? Thanks.

  2. #2
    costelc is offline Sugar Community Member
    Join Date
    Jul 2010
    Posts
    20

    Default Re: Subpanel 2 level relationship

    Any hint or idea?

  3. #3
    eitrix's Avatar
    eitrix is offline Sugar Community Member
    Join Date
    Aug 2010
    Location
    Serbia
    Posts
    396

    Default Re: Subpanel 2 level relationship

    can you share the code for what you have done above with some comments and guides?

    thx
    CRM Software Engineer
    Eontek - www.eontek.rs

  4. #4
    costelc is offline Sugar Community Member
    Join Date
    Jul 2010
    Posts
    20

    Default Re: Subpanel 2 level relationship

    Thanks for answering. My modules are Recruiters -> Jobs -> Leads. Recruiters and Jobs are custom modules. Each Recruiter has 0..many Jobs, each Job has 0..many Leads (applicants). In the Recruiter detail view I have the Jobs subpanel list which is auto-generated by the Recruiter to Jobs relation. But I also want another subpanel with all Leads from all jobs for the current recruiter. This subpanel is not auto-generated because Leads only links to Jobs, not Recruiters. So I need to access the relation Jobs_to_Leads for all the Jobs in the Recruiters_to_Jobs relation.

  5. #5
    costelc is offline Sugar Community Member
    Join Date
    Jul 2010
    Posts
    20

    Default Re: Subpanel 2 level relationship

    Was this last info enough?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. delete subpanel instead of relationship
    By neel1154 in forum Developer Help
    Replies: 3
    Last Post: 2010-05-24, 09:59 AM
  2. Does a subpanel need a relationship?
    By flymirco in forum Developer Help
    Replies: 2
    Last Post: 2009-07-01, 01:29 PM
  3. Integrating subpanel data into higher level list view
    By apavone in forum Developer Help
    Replies: 4
    Last Post: 2009-06-03, 12:10 PM
  4. How to show relationship subpanel
    By squared in forum Help
    Replies: 0
    Last Post: 2008-07-16, 11:40 AM
  5. Replies: 1
    Last Post: 2006-11-20, 07:06 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
  •