如何从 SharePoint 列表创建数据驱动的 SSRS 订阅?

发布于 2024-12-01 17:24:35 字数 302 浏览 1 评论 0原文

我正在尝试设置 SSRS 报告的数据驱动订阅。我想使用包含收件人电子邮件地址和报告参数的共享点列表,该参数将为每个收件人以不同的方式过滤报告内容。

Microsoft SharePoint 列表是创建数据驱动订阅向导 (SSRS 2008 R2) 中的选项之一,但我在互联网上找到的教程都没有描述如何配置连接字符串并制定查询以返回列表的内容。我在创建的数据驱动订阅上找到的所有内容都使用与 Sql Server 数据库的连接来驱动交付和配置。我宁愿使用共享点列表,因为它似乎是管理收件人的简单方法。

有人做过这个或者有关于如何配置此设置的示例的良好链接吗?

I am trying to set up a data driven subscription to an SSRS report. I'd like to use a sharepoint list that contains the recipient email address and a report parameter that will filter the contents of the report differently for each recipient.

Microsoft SharePoint List is one of the options in the create data-driven subscription wizard (SSRS 2008 R2) but none of the tutorials I can find on the interwebs describe how to configure the connection string and formulate the query to return the contents of the list. Everything I can find on created data-driven subscriptions uses connections to Sql Server databases to drive the delivery and configuration. I'd rather use a sharepoint list as it seems like an easy way to manage the recipients.

Anybody done this or have a good link to examples of how to configure this setup?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

画中仙 2024-12-08 17:24:35

您的连接字符串与用于将 SSRS 报告连接到共享点列表的连接字符串相同。它应该类似于 http://{sharepointDomain}/{YourSite}。

至于查询,它应该看起来像这样——我通过使用 SSRS 中的查询设计器得到了这个。我发现使用查询设计器来消除查询是最好的——然后,如果您需要添加过滤器或任何内容,您可以向可选标记添加更多语法。

<RSSharePointList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ListName>MyList</ListName>
  <ViewFields>
    <FieldRef Name="name" />
    <FieldRef Name="email" />
  </ViewFields>
  <Query> --if you have any filters, put them in this section here, otherwise remove the Query tags
  </Query>
</RSSharePointList>

这是我写的一篇文章,提供了设置它的分步指南。

http://jaysonseaverbi.blogspot.com/2013/11/data -driven-subscription-using.html

Your connection string is the same connection string you'd use to connect an SSRS report to a sharepoint list. It should look like this http://{sharepointDomain}/{YourSite}.

As for the query, it should look something like this--I got this by using the query designer in SSRS. I find that using the query designer to stub out my query is best--then if you need to add filters or anything you may add more syntax to the optional tags.

<RSSharePointList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ListName>MyList</ListName>
  <ViewFields>
    <FieldRef Name="name" />
    <FieldRef Name="email" />
  </ViewFields>
  <Query> --if you have any filters, put them in this section here, otherwise remove the Query tags
  </Query>
</RSSharePointList>

Here's an article I wrote giving a step-by-step guide to setting it up.

http://jaysonseaverbi.blogspot.com/2013/11/data-driven-subscription-using.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文