【问题标题】:how to customize export data(listview) SuiteCRM如何自定义导出数据(列表视图) SuiteCRM
【发布时间】:2018-12-06 06:25:05
【问题描述】:

如果我在主模块(modules/Leads/lead.php)中编写 create_export_query(),我可以自定义

但我希望这应该是升级安全代码,

我们可以在自定义路径中而不是在lead.php中添加create_export_query()方法

如果是这样,除了主模块位置之外,我们可以在哪个文件中添加此功能?

custom/modules/Leads/lead.php 会起作用吗?

谢谢 娜仁

【问题讨论】:

    标签: suitecrm


    【解决方案1】:

    custom/modules/Leads/lead.php 在您将 beanFile 位置更改为主 bean 之前将无法工作。

    有两种方法可以做到这一点。

    1) Make an extension, custom/Extension/application/Ext/Include, make
    a new file CustomLeads.php, put your custom BeanFile location here
    for lead module.
    
    2) As export is certainly an action,you may create a custom
    controller,ie custom/modules/Leads/controller.php, create a new
    function action_export, put your custom code there.
    

    不推荐使用 Suite 核心模块的覆盖 bean,因为它可能在任何时候破坏整个系统。你应该选择#2。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-04-04
      • 2011-07-25
      • 2023-04-06
      • 2011-04-21
      • 1970-01-01
      相关资源
      最近更新 更多