Results 1 to 5 of 5

Thread: Sort on Listview for dropdown lists

  1. #1
    beuten is offline Sugar Community Member
    Join Date
    May 2006
    Location
    Berlin, Germany
    Posts
    151

    Default Sort on Listview for dropdown lists

    Is it possible to sort dropdown lists in the ListView by clicking on the field name (for all modules)?

    All tips are welcome!!

    5.1.0c (Build 4979) Professional

    Thanks in advance
    Chad (beuten)
    DAXTEN
    www.daxten.com

  2. #2
    beuten is offline Sugar Community Member
    Join Date
    May 2006
    Location
    Berlin, Germany
    Posts
    151

    Default Re: Sort on Listview for dropdown lists

    any ideas on how to do this?
    Chad (beuten)
    DAXTEN
    www.daxten.com

  3. #3
    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: Sort on Listview for dropdown lists

    You need to edit the file custom/modules/<ModuleName>/metadata/listviewdefs.php
    and add the attribute

    PHP Code:
    'sortable' => true
    Into dropdown field defs.

    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.

  4. #4
    beuten is offline Sugar Community Member
    Join Date
    May 2006
    Location
    Berlin, Germany
    Posts
    151

    Thumbs up Re: Sort on Listview for dropdown lists

    Thanks André

    worked like a charm!
    Chad (beuten)
    DAXTEN
    www.daxten.com

  5. #5
    Blubster is offline Junior Member
    Join Date
    Apr 2008
    Posts
    4

    Default Re: Sort on Listview for dropdown lists

    Hi,

    I have the same problem and I have tried to follow the solution suggested above, but the problem is that the directory does not exist.

    I have created a cisutom field and added it in the Projects module and in the list view. The custom field shows up in the list view but does not have the hyperlink for sorting.

    When I go to custom/modules/<ModuleName>/ there is no directory called "metadata" and therefore I do not have the file listviewdefs.php to edit it. The only directory that exists under custom/modules/<ModuleName>/ is the 'language' directory.

    Have you got any suggestions?

    Many thanks in advance.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Edit Default ListView Sort Order?
    By tj@estreet.com in forum Feature Requests
    Replies: 5
    Last Post: 2009-05-27, 11:50 AM
  2. Leads - Sort name column by last name in Listview
    By Gorgar in forum General Discussion
    Replies: 5
    Last Post: 2009-02-18, 02:51 PM
  3. Sort based on non-db field in Custom Module ListView
    By Tryphan in forum Developer Help
    Replies: 6
    Last Post: 2008-08-20, 12:01 PM
  4. 1. Listview default sort with date modified/created
    By sugarcare in forum Developer Help
    Replies: 0
    Last Post: 2006-08-09, 06:55 AM
  5. Default sort in listView...
    By nomar in forum Developer Help
    Replies: 18
    Last Post: 2006-07-05, 12:31 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
  •