English 中文(简体)
第10点:希望限制每个用户组的田地
原标题:Sharepoint 10 Lists: want to limit form fields per user groups

我正在利用Sign Point 10 Lists功能建立一个服务申请电话系统。 在填写表格时,我想将一些形式领域从终端用户那里隐藏起来,但希望民间社团看到所有形式领域。 其中一个例子是隐藏“寄托:”形式的外地最终用户。 不知道如何做到这一点。 事先感谢你。

问题回答

rel=“nofollow”>JQuery SPservices 图书馆,将其放在阅读的图书馆或14 Hive图书馆,每套图书馆都适合你。 然后将清单的新表格(与SP设计师)编辑,并在提及这两个档案时添加。

添加文字标签如下:

$(document).ready(function() {
    Admin_Group = "My Group Name";
    if(IsGroupMember(Admin_Group))
    {
        $( input[title="Assigned To"] ).parent().parent().css("display","none");
    }
});


function IsGroupMember(GroupName)
{
    var isGroupMember = false;
    $().SPServices({
            operation: "GetGroupCollectionFromUser",
            userLoginName: $().SPServices.SPGetCurrentUser(),
            async: false,
            completefunc: function(xData, Status) {
              if($(xData.responseXML).find("Group[Name= " + GroupName + " ]").length == 1)                
              {
                  isGroupMember = true;
              }
            }
    });
    return isGroupMember;
}

也许你需要检查投入选择人是否正确掌握所分配的或你需要藏匿的领域,但我已经在许多情形下成功地利用了这一方法。 • 确保你藏匿的田间不成为必要的领域。 还记得在EditForm掩盖这一点。 如果能满足你们的需要,也会 as。

You can do this by editing the view / edit form in SharePoint designer or InfoPath, but you need quite a bit of knowledge on XSLT or InfoPath to do tricks like these. For InfoPath see: http://blog.symprogress.com/2011/05/infopath-list-form-hidedisable-fields-based-on-sharepoint-group-membership/

或者,通过利用视觉演播室,你可以为你们所需要的每一项内容创建定制网站。

Or you can use a product like this, which is by far the easiest way: http://store.bamboosolutions.com/sharepoint-column-level-security.aspx

我知道,你可以提出名单观点,但从能够代表名单内容的多国公司模式中,人治权基本上是观点。 如果是这样的话,管理人员的机票单和TI票单单表也一样。 您应寻找名单,供大家分享。 希望这一帮助。

在我的组织里,我不得不这样做,我们在那里正在建立一个求助服务台系统。 用户只需要几个领域,如主题、说明、适当日期,因为助理警官拥有包括说明在内的全部田地,被分配到,等等。

最容易的方式是创造新产品。 页: 1

您可以通过复制现有的“新森林”设计器来做到这一点,在网页上插入一个定制清单,将现有的可识别特征定为虚假,然后删除你不希望用户看到的信息。

然后,就适用新森林。 如同违约的新表格一样,应该这样做。

EDIT: SharePoint Designer 2010 makes this process easier... Follow this link: http://office.microsoft.com/en-us/sharepoint-designer-help/create-a-custom-list-form-using-sharepoint-designer-HA010378258.aspx

我们使用Sharepoint Forms Designer工具。 它允许为不同股东群体制定具体形式。

我的回答与保姆相似,但结构差别不大。 在名单表中,我们有同样的要求,但就我们而言,我们躲藏某些基于集团成员的因素。 你们需要做以下工作:

  • Add a reference to jQuery and SPServices in either your master page or your edit form. We use the master page option in our environment.
  • Ideally, create a new custom edit form for your list and make it the default. It s generally not a good idea to modify the vanilla forms if you can help it.
  • Open the edit form in SharePoint Designer and add the following script to it:

$(document).ready(function() {
  $().SPServices({
    operation: “GetGroupCollectionFromUser”,
    userLoginName: $().SPServices.SPGetCurrentUser(),
    async: false,
    completefunc: function(xData, Status) {
      if ($(xData.responseXML).find(“Group[Name = ’Engineering’]”).length == 1) {
        // alert(“You shouldnt see the button.”);
        $(“input[id = ’AcctBtn’]”).hide();
      }
    }
  });
});

In your case, you ll actually want to do the opposite - make specific fields hidden by default and then show them if the user s in a group. Simply duplicate the middle line (where it hides the input field) for each element you want to modify. This way you can easily show or hide multiple elements on the form for users in the given SharePoint group.





相关问题
SharePoint 2010 Blog site template and post security

I asked this question on msdn forums but got no response in 24 hours. I am pasting the question here, I am sure you guys out there can help me :) This is my first post: I created a blog site with SP ...

Sharepoint 2010 - Custom Ribbon

i m developing a sharepoint project and central admin pages (located in _layouts), and i want to use Ribbon bar. i have found this sample but i hope so, it is wrong.. http://sharepointsolutions.com/...

Printing an InfoPath 2010 form in SharePoint 2010

Does anyone know where the option to print an infopath form (in my case a customized list form) exists in SharePoint 2010? In MOSS this functionality comes out of the box but either I am missing ...

Sharepoint 2010 Email Event Receiver not firing?

I have two event recievers setup on a list in 2010. The first is a ItemAdded reciever that works every time: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft....

Access Services and SharePoint 2010 - Need Info

I ve been asked to research the ability to publish Access solutions directly to SharePoint as demonstrated in the demo below. http://channel9.msdn.com/shows/Access/Microsoft-Access-2010-Demo/ I m ...

热门标签