SharePoint Designer 在保存页面时删除 Web 部件连接
我在 SharePoint 上托管了一个自定义 ASPX 页面,具有以下 Web 部件连接,从 PerformancePoint 筛选器到 SSRS ReportViewWebPart:
<WebPartPages:SPProxyWebPartManager id="pwpm_0d7e10d6dc8f4b00a8a0aeb2a354c814" runat="server">
<SPWebPartConnections>
<WebPartPages:SPWebPartConnection ConsumerConnectionPointID="BIDataProvider"
ConsumerID="pps_CapexReport"
ID="conn_5b654f26f68f41c1ac67be5a440d1b4d"
ProviderConnectionPointID="TransformableBIDataProvider"
ProviderID="pps_FunctionHierarchyFilter">
<pps:TransformableBIDataProviderTransformer ConfigurationState="Microsoft.PerformancePoint.Scorecards.TransformerConfigurationRecord"
ID="a0bb0034-db8a-41ce-8d2c-6db2194e639b">
</pps:TransformableBIDataProviderTransformer></WebPartPages:SPWebPartConnection>
</SPWebPartConnections>
</WebPartPages:SPProxyWebPartManager>
可以使用 sharepoint Web 界面添加连接或通过手动键入标记来生成此代码 - 无论哪种方式,打开然后使用 SharePoint Designer 2010 重新保存页面会删除页面上的所有 Web 部件连接,只留下:
<WebPartPages:SPProxyWebPartManager id="pwpm_0d7e10d6dc8f4b00a8a0aeb2a354c814" runat="server">
<SPWebPartConnections></SPWebPartConnections>
</WebPartPages:SPProxyWebPartManager>
使用常规 SharePoint Designer 编辑页面 GUI(非高级模式)允许我添加连接并保存页面,但随后会抛出运行时错误:“函数层次结构和资本支出报告之间的连接转换器不是客户端可连接转换器。”
深入挖掘后,我发现包含
<pps:TransformableBIDataProviderTransformer
ConfigurationState="Microsoft.PerformancePoint.Scorecards.TransformerConfigurationRecord"
ID="a0bb0034-db8a-41ce-8d2c-6db2194e639b">
</pps:TransformableBIDataProviderTransformer>
是导致 SharePoint Designer 完全删除连接的原因。但如果删除它,运行时会抛出“不可客户端连接的转换器”异常。
正如您可以想象的那样,这非常烦人,因为这意味着每当我使用 SharePoint Designer 编辑 aspx 页面时,我都必须重新添加页面上的所有连接(使用笨重的 Web 界面)。
有解决方法还是我在这里缺少什么?如何在标记中添加 Web 部件连接,并且在编辑页面时不删除它们?
I have a custom ASPX page hosted on SharePoint with the following web part connection, from a PerformancePoint filter to a SSRS ReportViewWebPart:
<WebPartPages:SPProxyWebPartManager id="pwpm_0d7e10d6dc8f4b00a8a0aeb2a354c814" runat="server">
<SPWebPartConnections>
<WebPartPages:SPWebPartConnection ConsumerConnectionPointID="BIDataProvider"
ConsumerID="pps_CapexReport"
ID="conn_5b654f26f68f41c1ac67be5a440d1b4d"
ProviderConnectionPointID="TransformableBIDataProvider"
ProviderID="pps_FunctionHierarchyFilter">
<pps:TransformableBIDataProviderTransformer ConfigurationState="Microsoft.PerformancePoint.Scorecards.TransformerConfigurationRecord"
ID="a0bb0034-db8a-41ce-8d2c-6db2194e639b">
</pps:TransformableBIDataProviderTransformer></WebPartPages:SPWebPartConnection>
</SPWebPartConnections>
</WebPartPages:SPProxyWebPartManager>
This code can be generated using the sharepoint web interface to add connections or by manually typing the markup -- either way, opening and then re-saving the page using SharePoint Designer 2010 deletes ALL web part connections on the page, leaving only:
<WebPartPages:SPProxyWebPartManager id="pwpm_0d7e10d6dc8f4b00a8a0aeb2a354c814" runat="server">
<SPWebPartConnections></SPWebPartConnections>
</WebPartPages:SPProxyWebPartManager>
Using the regular SharePoint Designer edit page GUI (not advanced mode) allows me to add connections and save the page, but then throws the runtime error: "The connection transformer between Function Hierarchy and Capex Report is not a Client Connectable Transformer."
Digging a little deeper, I have found that including
<pps:TransformableBIDataProviderTransformer
ConfigurationState="Microsoft.PerformancePoint.Scorecards.TransformerConfigurationRecord"
ID="a0bb0034-db8a-41ce-8d2c-6db2194e639b">
</pps:TransformableBIDataProviderTransformer>
is what is causing SharePoint Designer to delete the connections entirely. But if you remove it, the runtime throws the "not client connectable transformer" exception.
As you can imagine, this is massively annoying, because it means I have to re-add all the connections on a page (using the clunky web interface) any time I edit an aspx page using SharePoint Designer.
Is there a workaround or something I'm missing here? How can I add web part connections in markup and not have them deleted any time I edit the page?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论