在SharePoint调查中删除对贡献者(具有贡献权限的用户)的“导出"操作 [英] Remove the 'export' action to contributors (users with contribute permission) in a SharePoint Survey

查看:187
本文介绍了在SharePoint调查中删除对贡献者(具有贡献权限的用户)的“导出"操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个调查,并向用户提供了权限.
然后在高级设置中设置为仅允许用户看到自己的内容
答复,并且从调查站点来看,一切正常.
如果他们查看图形视图或仅是响应的普通视图,他们只会看到
他们的.
但是他们还可以选择何时导出到电子表格(Excel)
他们得到所有回应吗?

I have created a survey and gave users contribute permissions.
then in the advanced settings set to only allow a user to see their own
responses and from the survey site this all works fine.
If they look at the graphical view or just plain view of the responses they just see
theirs.
But they also have the option to export to spreadsheet (Excel) and when they
do they get all responses.
Can the Action (Export to Spreadsheet) be disabled for a contributor?

推荐答案

我必须使用JavaScript查找每个元素并隐藏导出按钮.
参见此处 http://techtrainingnotes.blogspot.in/2008/02/sharepoint- hidden-menus-not-using.html [ ^ ]

我刚刚添加了

I had to use JavaScript find each element and the hide the export button.
see here http://techtrainingnotes.blogspot.in/2008/02/sharepoint-hiding-menus-not-using.html[^]

I just added

var doc = document.getElementsByTagName('ie:menuitem');
for (var i = 0; i < doc.length; i++)
 {
   itm = doc[i];
   if (itm.id.match('ExportToSpreadsheet')!=null)

     { itm.hidden=true; }
  }



哦...,您需要将其添加到



oh ... and you need to add this below the

</WebPartPages:WebPartZone>


在视图中
在高级模式下在SharePoint Designer中修改视图

更新:
这不仅适用于SharePoint中的任何内容(调查或列表)


in the view
Modify the view in SharePoint Designer in advanced mode

Update:
This works for anything in SharePoint not only (surveys or lists)


这篇关于在SharePoint调查中删除对贡献者(具有贡献权限的用户)的“导出"操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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