Hi All,
I want to sort the list view records on date by Descending order. How I can do this is Sugarcrm.
I want to do this in all modules
Thanks,
Pravin
Hi All,
I want to sort the list view records on date by Descending order. How I can do this is Sugarcrm.
I want to do this in all modules
Thanks,
Pravin
You just need to edit the custom/modules/<Module>/metadata/listviewdefs.php and add the attribute
Inside date field definition.PHP Code:'sortable'=> true,
Then go to Admin -> Repair -> Quick Repair and Rebuild
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.
Hi,
I did the changes what you told in your post but there is nothing happen.
I did-
on custom/modules/Accounts/metadata/listviewdefs.php I chnaged-
then make quick repair..PHP Code:'DATE_MODIFIED' =>
array (
'width' => '10%',
'label' => 'LBL_DATE_MODIFIED',
'default' => true,
'sortable'=> true,
),
It sorts by name by default. I want to sort on modified date in descending order.
Is i missed up anythings!!
Hello Pravin,
In this PDF
http://developers.sugarcrm.com/tutor...onships101.pdf
you may read (Page 8):
The Layout File – Tell the module to show a subpanel
The layout file tells SugarCRM® to create a subpanel for the data from this relationship. It does not
actually define the layout of the subpanel, it just makes space for it in the layout of the target module's
DetailView. Again, there are two of these files, one for each module in the relationship. This is the Cases
layout file:
This works for me!!PHP Code:<?php
$layout_defs['Cases']['subpanel_setup']['opportunities'] = array(
'order' => 99,
'module' => 'Opportunities',
'sort_order' => 'desc',
'sort_by' => 'opportunity_id',
'subpanel_name' => 'ForCases',
'refresh_page' => 1,
'get_subpanel_data' => 'opportunities',
'add_subpanel_data' => 'opportunity_id',
'title_key' => 'LBL_OPPORTUNITIES_SUBPANEL_TITLE',
'top_buttons' => array(
array('widget_class' => 'SubPanelTopSelectButton'),
),
);
?>
Best regards
Jose
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks