Results 1 to 2 of 2

Thread: How to show multi fields of one relate module in a subpanel listview

  1. #1
    voka is offline Member
    Join Date
    May 2010
    Posts
    5

    Default How to show multi fields of one relate module in a subpanel listview

    new custom modules: Product, Customer, QuoRecords

    Product's fields: sn, name, vendor,cost.

    Customer and QuoRecords are one to many.

    QuoRecords has a relate type field called 'product_sn' that relates to a Product. And also 'quotation' and 'quo_date' field.

    QuoRecords's list within Customer' subpanel.

    Anyone can help on showing the following list of QuoRecords within a Customer' subpanel?

    product_sn name vendor cost quotation quo_date
    0001 mobile nokia 300 400 2010-06-09

  2. #2
    agcopley is offline Sugar Community Member
    Join Date
    Nov 2007
    Location
    Santiago, Chile
    Posts
    204

    Default Re: How to show multi fields of one relate module in a subpanel listview

    Quote Originally Posted by voka View Post
    new custom modules: Product, Customer, QuoRecords

    Product's fields: sn, name, vendor,cost.

    Customer and QuoRecords are one to many.

    QuoRecords has a relate type field called 'product_sn' that relates to a Product. And also 'quotation' and 'quo_date' field.

    QuoRecords's list within Customer' subpanel.

    Anyone can help on showing the following list of QuoRecords within a Customer' subpanel?

    product_sn name vendor cost quotation quo_date
    0001 mobile nokia 300 400 2010-06-09
    You need to include the related fields in the vardefs fro your subpanel module. You can then add them via Studio to your subpanel list view.

    For example, I have related Products to Projects, Projects being the child.
    I then include in custom\Extension\modules\Project\Ext\Vardefs\varde fs.ext.php


    $dictionary["Project"]["fields"]["products_project_name"] = array (
    'name' => 'products_project_name',
    'type' => 'relate',
    'source' => 'non-db',
    'vname' => 'LBL_PRODUCTS_PROJECT_FROM_PRODUCTS_TITLE',
    'save' => true,
    'id_name' => 'products_pf535roducts_ida',
    'link' => 'products_project',
    'table' => 'products',
    'module' => 'Products',
    'studio' =>'visible',
    'rname' => 'name',
    );

    The field 'products_project_name' now appears in the Studio.
    The above definition will differ depending on whether you used a 'relate' type field or a 1:M relationship, but
    the principal is the same.

    Rgds
    Andrew

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Custom module subpanel relate fields
    By admdelta in forum Help
    Replies: 0
    Last Post: 2009-12-09, 09:03 AM
  2. Relate bugs to projecttasks and show up in subpanel
    By tjelle in forum Developer Help
    Replies: 8
    Last Post: 2009-06-04, 10:50 AM
  3. relate field to show in listview and subpanel
    By marktaylor5151 in forum General Discussion
    Replies: 6
    Last Post: 2009-03-05, 08:46 AM
  4. how to let relate account show in subpanel show
    By eddiechen in forum Developer Help
    Replies: 2
    Last Post: 2009-02-20, 01:39 AM
  5. Custom Module Relate Field doesn't show on ListView
    By fxbrandon in forum Developer Help
    Replies: 5
    Last Post: 2008-10-04, 10:05 AM

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
  •