如何更改自定义子面板中的默认排序 - Sugarcrm? [英] How to change default sort in custom subpanel - sugarcrm?

查看:24
本文介绍了如何更改自定义子面板中的默认排序 - Sugarcrm?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在自定义面板中按创建日期"进行默认排序.你能指导我吗,我怎样才能把它设为创建日期"作为默认排序?

I want to put default sort by "Date Created" in custompanel. can you please guide me, how can I make it "Date Created" as default sort?

请帮帮我.

推荐答案

在您的 layout_defs 中,将 sort_by 更改为所需的列:

In your layout_defs change the sort_by to the desired column :

<?php
   $layout_defs['ModuleName']['subpanel_setup']['Subpanelname'] = array(
        'order' => 50,
        'sort_order' => 'desc',
        'sort_by' => 'date_entered',
   );
?>

在这个例子中,用于排序的默认列是date_entered

In this example, the default column used for sorting is date_entered

这篇关于如何更改自定义子面板中的默认排序 - Sugarcrm?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆