Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/reporting-services/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reporting services 在动态CRM报告中允许全选选项_Reporting Services_Dynamics Crm - Fatal编程技术网

Reporting services 在动态CRM报告中允许全选选项

Reporting services 在动态CRM报告中允许全选选项,reporting-services,dynamics-crm,Reporting Services,Dynamics Crm,假设我有一份关于Dynamic365 Online的非常简单的SSRS报告,如下所示: FetchXML查询如下所示: <fetch distinct="false" no-lock="false" mapping="logical"> <entity name="account" enableprefiltering="1" prefilterparametername="CRM_FilteredAccount"> <attribute name="na

假设我有一份关于Dynamic365 Online的非常简单的SSRS报告,如下所示:

FetchXML查询如下所示:

<fetch distinct="false" no-lock="false" mapping="logical">
<entity name="account" enableprefiltering="1" prefilterparametername="CRM_FilteredAccount">
    <attribute name="name" alias="name" />
    <attribute name="createdon" alias="createdon" />
    <attribute name="ownerid" />
</entity>

my filter的值通过以下FetchXML查询从CRM中检索,并将显示为下拉列表:

<fetch distinct="false" no-lock="false" mapping="logical">
<entity name="systemuser">
    <attribute name="systemuserid" />
    <attribute name="fullname" />
    <order attribute="fullname" />
</entity>

从我在各种网站上发现的情况来看,“允许空白值”和“允许空白值”只有在我第二次查询的结果中已经存在空白/空值时才起作用。如果我的过滤器列表是使用SQL查询构建的,那么这不会是一个问题,因为我可以简单地插入一个伪空值,但是我找不到一种方法来使用FetchXML查询执行同样的操作

因此,我的问题是,在这种情况下,如何向过滤器列表中添加一个伪/空值


注意:我在下面的回答中添加了我如何解决这个问题的方法,但我觉得这一定是解决我认为常见问题的更好方法。

我添加了一个新的虚拟用户,如下所示, 请注意,我将此用户的显示名称设置为“(请选择)”: 然后在我的报告中,我将过滤器的默认值设置为这个虚拟用户,结果是我现在有了一个“全选”选项,看起来非常好


我添加了一个新的虚拟用户,如下所示:, 请注意,我将此用户的显示名称设置为“(请选择)”: 然后在我的报告中,我将过滤器的默认值设置为这个虚拟用户,结果是我现在有了一个“全选”选项,看起来非常好