今天在给项目添加一个报表,本以为极为顺利的。在将RDL文件上传到CRM,并和Entity关联,在Entity的Form的Run Report打开时, 弹出如下的对话框:
(There are some clauses that have errors in them please remove them and try again.)
按本人设计报表的经验来看,出这个错误,真是让人百思不得其姐,没道理。费了好大的劲才查到,Contact entity的contactid的Searchable属性,不知被哪位同事设成了No,导致contactid不能被search,所以报这个错。
在Form的Run Report下打开Report时,CRM会将当前记录作为Filter(即将当前记录的ID作为Entity的Primary Key的条件)传给Report。因为Entity的Primary Key的Searchable属性被设为No,所以Filter设置失败。
所以,要想使用Pre-Filtering,记得要将Entity的Primary Key的Searchable属性设为Yes。
Entity的Primary Key的Searchable属性,影响Report的运行
原文:http://www.cnblogs.com/LevyLiu/p/4838650.html