Results 1 to 4 of 4

Thread: Sub Panel - Order of Data

  1. #1
    matt.stannard is offline Sugar Community Member
    Join Date
    Apr 2010
    Posts
    57

    Default Sub Panel - Order of Data

    Hey there,

    Hopefully a simple request, in the sub panels, I'd like to have the data automatically ordered by a field, can someone help point me in the right direction?

    Many thanks!!
    --
    Sugar Version 5.2.0l (Build 5843)
    --
    Matt Stannard
    IT Strategist
    mattstannard.com

  2. #2
    madmat is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    Germany
    Posts
    164

    Default Re: Sub Panel - Order of Data

    PHP Code:
    layoutdefs -> subpaneldefs -> field -> 'order' => xx'sort_order' => 'asc/desc''sort_by' => 'field' 
    you can either use the subpaneldefs.php in "modules/your_module" or even better (upgrade safe) via layoutdefs in your custom folder.

  3. #3
    matt.stannard is offline Sugar Community Member
    Join Date
    Apr 2010
    Posts
    57

    Default Re: Sub Panel - Order of Data

    Hi,

    Thanks for that - I can't seem to find where to put the code, can you help me?

    M
    --
    Sugar Version 5.2.0l (Build 5843)
    --
    Matt Stannard
    IT Strategist
    mattstannard.com

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

    Default Re: Sub Panel - Order of Data

    sugarfolder/modules/module_name/metadata/subpaneldefs.php

    If you are making changes copy this file in sugarfolder/custom/modules/modulename/metadata/HERE

    if folders does not exist, create them.

    Then edit the file and order values. One thing i noticed is after you edit order values and quick repair, sometimes they won't be working either becouse you manualy moved some subpanels and then he remembered your preferences. To sort this out clear out user_preferences table in database, but this will reset all your preferences. I don't know better way yet.
    CRM Software Engineer
    Eontek - www.eontek.rs

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: 2010-07-31, 12:09 PM
  2. Field inside activities sub panel does not show data
    By Thyssen in forum Developer Help
    Replies: 2
    Last Post: 2010-01-25, 12:29 PM
  3. Entering data into a sub-panel
    By chriscaputo in forum Developer Help
    Replies: 1
    Last Post: 2009-06-30, 12:01 AM
  4. Upgrade Chart Data Cache and htaccess in admin panel - how?
    By josch in forum Installation and Upgrade Help
    Replies: 3
    Last Post: 2008-05-31, 07:19 PM
  5. Sub Panel data filed passing issue
    By maxxsir123 in forum Developer Help
    Replies: 0
    Last Post: 2008-02-16, 04:00 PM

Tags for this Thread

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
  •