我如何自定义SharePoint任务通知以显示在右上角 [英] How can i customize SharePoint Tasks notification to display on the top right corner

查看:73
本文介绍了我如何自定义SharePoint任务通知以显示在右上角的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何自定义Intranet以显示分配给我的名字的任务通知的总数?

How can i customize intranet to display the total number of task notifications allocated to my name?

例如,在我的名字旁边可能有一个铃铛,上面写着3或5,表示我的工作.或者只是一个数字,表明我有任务

For example, next to my name have maybe a bell with say 3 or 5 as an indication of my tasks. Or just a number indicating that i have tasks

谢谢

nchiliza

推荐答案

您好,

您可以通过REST API查询用户任务,并在委托控件(SuiteLinksDelegate 或其他)中显示.

通过REST API查询用户任务:


.ajax({ 网址:"/_ api/web/lists/getbytitle('Tasks')/getitems", 方法:"POST", 数据:"{'query':{'__ metadata':{'type':'SP.CamlQuery'},\" ViewXml \":\" + viewXml +"\" }}, 标头:{ "X-RequestDigest":
.ajax({ url: "/_api/web/lists/getbytitle('Tasks')/getitems", method: "POST", data: "{ 'query' : {'__metadata': { 'type': 'SP.CamlQuery' }, \"ViewXml\": \"" + viewXml + "\" }}", headers: { "X-RequestDigest":


(" #__ REQUESTDIGEST).val(), "Accept":"application/json; odata = verbose", "content-type":"application/json; odata = verbose" } });
("#__REQUESTDIGEST").val(), "Accept": "application/json; odata=verbose", "content-type": "application/json; odata=verbose" } });

自定义SharePoint委托控件.

http://www.c-sharpcorner.com/UploadFile/sagarp/implement-custom-suitelinks-delegate-control-in-sharepoint-2/

最好的问候,


这篇关于我如何自定义SharePoint任务通知以显示在右上角的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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