当有多个匹配项时,Sharepoint 2010 PeoplePicker没有显示带有名称选项的下拉列表

时间:2012-01-26 20:39:38

标签: sharepoint-2010 peoplepicker

场景:人员选择器控件在aspx页面上。

<wssawc:PeopleEditor AllowEmpty="false" AcceptAnyEmailAddresses="true" ValidateResolvedEntity="true"
    ShowButtons="true" ShowDataValidationErrorBorder="true" ShowEntityDisplayTextInTextBox="true"
    ShowErrorPlaceHolder="true" ValidatorEnabled="true" MultiSelect="false" ID="secondaryOwnerPicker"
    runat="server" SelectionSet="User" Width="40em" AllowTypeIn="true" DoPostBackOnResolve="false"
    EnableBrowse="true" ForceClaims="true" Title="Secondary Owner People Picker" UrlZone="Extranet"
    EnabledClaimProviders="ADClaimsProvider" />

用户键入具有多个匹配项的名称,并且当您将鼠标悬停在名称上时,没有像在SP2010 Central Admin中那样解析它时弹出的列表框。当我将鼠标悬停在带有红色下划线的名称上时,我得到的消息是“多个条目匹配,请解析”。当我点击红色下划线名称时没有任何反应。

我错过了什么吗?

更新我在尝试点击名称解决多个匹配后看到此javascript错误:

  

错误:未定义CAMOpt
  来源档案:http://myServer/_layouts/entityeditor.js?rev=1%2Fj%2Ba5PO0xZXnRjXxVHOkg%3D%3D
  行:2

1 个答案:

答案 0 :(得分:0)

我已经注册了webcontrols但需要添加对core.js文件的引用

<%@ Register TagPrefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

在头部添加

<wssawc:ScriptLink ID="ScriptLink1" Language="javascript" Name="core.js" runat="server" />

将这两个样式包含在包含所有名称的好框中

<link rel="Stylesheet" type="text/css" href="/_layouts/1033/styles/Themable/layouts.css" />
<link rel="Stylesheet" type="text/css" href="/_layouts/1033/styles/Themable/corev4.css" />
相关问题