电脑桌面
添加蚂蚁七词文库到电脑桌面
安装后可以在桌面快捷访问

filterContainerInit事件

来源:金蝶云社区作者:金蝶2024-09-233

filterContainerInit事件

1 事件介绍

可在事件中对过滤容器的数据进行修改。


2 事件触发时机

初始化过滤容器触发该事件。


3 代码模板

package kd.report.demo.plugin;
 
import kd.bos.entity.report.ReportQueryParam;
import kd.bos.form.control.events.FilterContainerInitEvent;
import kd.bos.report.plugin.AbstractReportFormPlugin;
 
public class DemoReportFormPlugin extends AbstractReportFormPlugin{
 
    @Override
    protected void filterContainerInit(FilterContainerInitEvent contInitEvent, ReportQueryParam queryParam) {
         // TODO Auto-generated method stub
         super.filterContainerInit(contInitEvent, queryParam);
    }
}


4 应用示例

4.1 案例说明

对报表过滤条件中,方案查询的请假类型的枚举值进行部分删除。使得过滤中下拉列表的值中的事假不显示。


4.2 实现方案

对报表过滤条件中,方案查询的请假类型的枚举值进行部分删除。使得过滤中下拉列表的值中的事假不显示。


4.3 运行效果

  • 实现前,请假类型中有病假。



  • 实现后,请假类型中没有病假。



4.4 实例代码

package kd.report.demo.plugin;
 
import java.util.List;
 
import kd.bos.entity.report.ReportQueryParam;
import kd.bos.filter.FilterColumn;
import kd.bos.filter.SchemeFilterColumn;
import kd.bos.form.control.events.FilterContainerInitEvent;
import kd.bos.form.field.ComboItem;
import kd.bos.report.plugin.AbstractReportFormPlugin;
 
public class DemoReportFormPlugin extends AbstractReportFormPlugin{
 
    @Override
    protected void filterContainerInit(FilterContainerInitEvent contInit

filterContainerInit事件

1 事件介绍可在事件中对过滤容器的数据进行修改。2 事件触发时机初始化过滤容器触发该事件。3 代码模板package kd.report.demo.plugin; ...
点击下载文档文档为doc格式

声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。如若本站内容侵犯了原著者的合法权益,可联系本站删除。

确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息
QQ群
  • 答案:my7c点击这里加入QQ群
支持邮箱
微信
  • 微信