Results 1 to 4 of 4

Thread: Accounts Module - Can't sort different columns

  1. #1
    c00ps is offline Junior Member
    Join Date
    Jan 2008
    Posts
    4

    Default Accounts Module - Can't sort different columns

    This is probably just an admin setting, but how can I sort by different columns in the list view for the accounts module? I can sort by account and phone only. I would like to sort all the columns.

  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: Accounts Module - Can't sort different columns

    Hi, c00ps.

    Check the file modulesAccounts/metadata/listviewdefs.php or custom/modules/Accounts/metadata/listviewdefs.php

    If exists the custom, then open it.

    Check if all fields has the attribute 'sortable' and it is set to true.

    Cheers

    --
    André Lopes
    Lâmpada Global Services
    Rua Bela Cintra, 299 conjunto. 51
    São Paulo, SP 01415-000
    tel1. 55 11 3237-3110
    cel. 55 11 7636-5859
    e-mail: info@lampadacrm.com.br

  3. #3
    c00ps is offline Junior Member
    Join Date
    Jan 2008
    Posts
    4

    Default Re: Accounts Module - Can't sort different columns

    Quote Originally Posted by andopes
    Hi, c00ps.

    Check the file modulesAccounts/metadata/listviewdefs.php or custom/modules/Accounts/metadata/listviewdefs.php

    If exists the custom, then open it.

    Check if all fields has the attribute 'sortable' and it is set to true.

    Cheers

    --
    André Lopes
    Lâmpada Global Services
    Rua Bela Cintra, 299 conjunto. 51
    São Paulo, SP 01415-000
    tel1. 55 11 3237-3110
    cel. 55 11 7636-5859
    e-mail: info@lampadacrm.com.br
    It's still not sorting, and it's probably an error on my part. Here an example from that file with the addition you mentioned:

    Code:
    $listViewDefs['Accounts'] = array(
    	'NAME' => array(
    		'width' => '40', 
    		'label' => 'LBL_LIST_ACCOUNT_NAME', 
    		'link' => true,
                    'sortable => true,
            'default' => true),
    	'BILLING_ADDRESS_CITY' => array(
    		'width' => '10', 
    		'label' => 'LBL_LIST_CITY',
    		),
            'default' => true),
    	'PHONE_OFFICE' => array(
    		'width' => '10', 
    		'label' => 'LBL_LIST_PHONE',
                    'sortable => true,
            'default' => true),
        'ACCOUNT_TYPE' => array(
            'width' => '10', 
            'label' => 'LBL_TYPE'),
            'sortable => true,
    Is there something I'm missing?

  4. #4
    c00ps is offline Junior Member
    Join Date
    Jan 2008
    Posts
    4

    Default Re: Accounts Module - Can't sort different columns

    Changing the listviewdefs.php is has no effect. How can I sort by different columns, or all the columns?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. HELP - Act import (field mapping)
    By smelamed in forum Help
    Replies: 32
    Last Post: 2010-12-15, 05:39 PM
  2. Module Builder
    By Olavo in forum Downloads
    Replies: 418
    Last Post: 2009-02-26, 06:36 AM
  3. Replies: 4
    Last Post: 2007-08-29, 03:25 PM
  4. From Accounts Module to Contacts Module
    By Miceal in forum Help
    Replies: 0
    Last Post: 2007-08-15, 03:23 PM
  5. Replies: 1
    Last Post: 2006-09-11, 03:38 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
  •