Results 1 to 6 of 6

Thread: interesting : how to show Subpanel of related module???

  1. #1
    SagarCRM's Avatar
    SagarCRM is offline Sugar Community Member
    Join Date
    Oct 2011
    Location
    Mumbai, Maharashtra, India
    Posts
    111

    Question interesting : how to show Subpanel of related module???

    Hi Experts
    I'm stuck up here on the issue. Let me explain first.
    I'm having Account module which is related to custom module 'News Room'. So i'm having 'News Room' subpanel in Account detailview.
    Also Account is related to Opportunity in one to many relationship so one opportunity will have only one account.
    All I want to do is when I view Opportunity in detail view, i want the subpanel of 'News Room' of respective related Account.
    So its quiet interesting. Any one have any ideas or solutions for such challenge???

    its like trichotomy, If A is related to B and B is related to C then we have to show that A is Related to C....
    Last edited by SagarCRM; 2012-01-13 at 05:26 AM.
    --

    Thanks & Regards,

    Sagar Salunkhe
    Mumbai, Maharashtra, INDIA

    sagar.salunkhe1991@gmail.com

    ~~ IT professionals never dies, they just go Offline... ~~


    sugar development and support services:- indian.sugarbean@gmail.com

  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: interesting : how to show Subpanel of related module???

    It is possible by creating a function based subpanel.
    Follow such implementation in modules/Campaigns/metadata/subpaneldefs.php and modules/Campaigns/Campaign.php

    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
    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: interesting : how to show Subpanel of related module???

    By my personal experience, the easiest way to add a subpanel on a module is really going to studio and creating relationship between these modules.
    You also could try create the relationship by hand, defining it under custom/metadata/<new_relation_ship_name>. And then add a new subpanel to your module defining it on /custom/Extentions/modules/Ext/layoutdefs/<file_name>. But this second approach requires more configurations, but is easier to configure it to use your already existing data.
    Last edited by rafael.q.g@hotmail.com; 2012-01-13 at 03:21 PM.
    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

  4. #4
    SagarCRM's Avatar
    SagarCRM is offline Sugar Community Member
    Join Date
    Oct 2011
    Location
    Mumbai, Maharashtra, India
    Posts
    111

    Default Re: interesting : how to show Subpanel of related module???

    Hi rafael,
    i had thought about that but it will be hectic if user is deleting record of news room from account subpanel

    Quote Originally Posted by rafael.q.g@hotmail.com View Post
    By my personal experience, the easiest way to add a subpanel on a module is really going to studio and creating relationship between these modules.
    You also could try create the relationship by hand, defining it under custom/metadata/<new_relation_ship_name>. Ands then add a new subpanel to your module defining it on /custom/Extentions/modules/Ext/layoutdefs/<file_name>, But this second approach requires more configurations, but is better to configure it to use your already existing data.
    --

    Thanks & Regards,

    Sagar Salunkhe
    Mumbai, Maharashtra, INDIA

    sagar.salunkhe1991@gmail.com

    ~~ IT professionals never dies, they just go Offline... ~~


    sugar development and support services:- indian.sugarbean@gmail.com

  5. #5
    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: interesting : how to show Subpanel of related module???

    A subpanel could allows/avoid records deletion directly from that.

    To customize the actions available from a subpoanel you just have to customize the file:
    [custom]/modules/<module_name>/metadata/subpanels/<subpanel_filename.php>.

    Thus, maybe you could create the subpanel the way you preffer, and then customize its actions by subpaneldefs file.
    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

  6. #6
    Umesh2012 is offline Junior Member
    Join Date
    Jan 2012
    Posts
    1

    Default Re: interesting : how to show Subpanel of related module???

    hey plz take a look at this issue...any1 have soln regarding this.i have same issue..but i can't resolve it..plz suggest us.


    thanks & regards
    umesh

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Related field did not show in the subpanel.
    By kenyamash in forum Developer Help
    Replies: 0
    Last Post: 2011-11-30, 11:33 AM
  2. subpanel for related field in module
    By guest_23 in forum Developer Help
    Replies: 0
    Last Post: 2011-11-15, 07:54 AM
  3. Replies: 0
    Last Post: 2011-05-04, 05:52 PM
  4. Replies: 3
    Last Post: 2009-12-04, 04:53 PM
  5. Module Detail View show List of Related->Related
    By theLowlyContractor2 in forum Help
    Replies: 0
    Last Post: 2008-09-11, 03:32 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
  •