SharePoint 2010 PersalPicker未显示在有多个匹配时的名称选择下降
-
14-11-2019 - |
题
方案:人们在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中执行此命令时鼠标才能解决此命名而无法启动的列表框。当我在用红色下划线鼠标鼠标时获得的消息是“Mulitple条目匹配,请解析”。当我点击红色带下划线的名称时,没有任何反应。
我错过了什么?
更新我在尝试单击名称以解析多个匹配项后,我会看到此JavaScript错误:
错误:未定义camopt
源文件: http://myserver/_layouts/entityeditor.js?Rev= 1%2fj%2ba5po0xzxnrjxxvhokg%3d%3d
线:2
解决方案
i already had webcontrols registered but needed to add a reference to the core.js file
<%@ Register TagPrefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
in the head add
<wssawc:ScriptLink ID="ScriptLink1" Language="javascript" Name="core.js" runat="server" />
include these two styles for the nice box with all the names found
<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" />
不隶属于 StackOverflow