SharePoint Web部件:将列表Web部件聚合总和值获取到XLM变量中 [英] SharePoint web parts: Get list web part aggregate sum value into XLM variable

查看:92
本文介绍了SharePoint Web部件:将列表Web部件聚合总和值获取到XLM变量中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个包含两个Web部件的SharePoint ASPX表单。


Web部件1是一个筛选列表,显示包含两个总计数字列的列。


Web部件  2需要显示数字中的总计Web部分1中的列。


我想我需要将Web部件1中的聚合值捕获到XML变量中,并在Web部件2中显示它们。


<我的XML知识有点弱,任何人都可以指点教程,我可以学习如何获得这个,甚至发布一个片段?



提前致谢


Chris


解决方案


我们可以创建一个列表视图并设置"总计"。在列表视图中,然后将列表视图Web部件添加到您的aspx页面。



或者我们也可以使用jQuery代码从Web第1部分获取数据,然后使用内容编辑器Web部件或脚本编辑器Web部件来显示数据。


如果不符合您的要求,我建议您提供更多信息(一些截图)以供进一步研究。


最好的问候,


丹尼斯


Hi,

I have a SharePoint ASPX form with two web parts.

Web part 1 is a filtered list showing columns which include two totalled numeric columns.

Web part 2 needs to show the totals from the numeric columns in web part 1.

I guess I need to capture the aggregated values from Web part 1 into XML variables and display them in Web part 2.

My XML knowledge is a little weak, can anyone point me towards tutorials where I can learn how to get this, or even post a snippet?

Thanks in advance

Chris

解决方案

Hi,

We can create a list view and set the "Totals" in the list view, then add the list view web part into your aspx page.

Or we can also get the data from web part 1 using jQuery code, then using a content editor web part or Script editor web part to show the data.

If not meet your requirement, I suggest you provide more information (some screenshots) for further research.

Best Regards,

Dennis


这篇关于SharePoint Web部件:将列表Web部件聚合总和值获取到XLM变量中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆