问题标签 [peoplepicker]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
sharepoint - 用于发布联系人的 SharePoint 2013 人员选择器
我在发布网站的 SharePoint 2013 上创建了具有自定义内容类型(但从内容类型页面派生)的自定义页面布局。我在页面布局上放置了几个字段控件(标题、一些自定义分类字段等),因此我可以直接在页面的编辑模式下更改它们。这工作得很好。
但是有一个字段“PublishingContact”(文章页面的内容类型附带的标准人员字段)可以在editform.aspx上使用自动完成控件进行设置。我像其他人一样在页面布局上放置这个控件时迷失了方向。
我尝试过经典的“UserField”控件,但这没有自动完成功能。我已经尝试过 ClientPeoplePicker,但这个控件没有属性可以将其映射到相应的字段。
那么有没有人知道如何将编辑表单的控件放在我的页面布局上,以便我具有与编辑表单相同的功能,但在我的页面布局上?
提前致谢!
sharepoint-2010 - SharePoint 2010 People Picker on 2013 sites
I have a code to generate custom form on 2010, that will generate form control based on the field type. I used the same code in 2013 I am getting the 2010 People Picker field including the resolve and search options. There is not auto complete options also. Is there ay specific property I need to set to convert the field to 2013 type field.
Note: OOB form its working as expected 2013 PP field shows.
javascript - SharePoint 模态对话框中的 PeoplePicker 字段,使用 SP.UI.ModalDialog.RefreshPage 丢失数据
我遇到了 SharePoint PeoplePicker 控件的问题。当模态对话框打开并处于编辑模式时,可以使用内置函数 SP.UI.ModalDialog.RefreshPage(SP.UI.DialogResult.OK) 刷新页面而不会丢失数据更改。文本、注释、选择、日期等字段可以正常工作,并且在 SP.UI.ModalDialog.RefreshPage(SP.UI.DialogResult.OK) 时不会丢失它们的更改。但遗憾的是,PeoplePicker 字段丢失了数据!
重现步骤
- 使用用户字段创建简单项目
- 使项目在对话框中打开(列表设置 - 高级 - 在对话框中启动表单)
- 创建项目
- 打开项目的EditForm
- 更新人员选择器字段
- 在控制台中执行 SP.UI.ModalDialog.RefreshPage(SP.UI.DialogResult.OK)
office365 - Office 365 的 Nintex 表单 - 新 NF.PeoplePickerAPI 方法中的错误
社区,
我正在尝试在 Nintex for Office 365 表单上的 Javascript 中创建 NF.PeoplePickerApi 的新实例。
但是,我在“新建”对象的行上遇到错误“对象不支持该操作”。
在调试器中,我可以看到 NF 对象没有 PeoplePickerApi 方法。问题是这是产品内部版本中的工作代码。我怀疑这是 Office 365 版本的一个缺点。可悲的是,我找不到其他选择。有没有人遇到或克服过这个问题?
javascript - 在 javascript 中解析 muiltipicker
我创建了一个表单,它通过 SharePoint 的 UPS 自动从 AD 中提取一个人的 (peoplepicker) 办公室位置,并将其填充到输入字段中。我遇到的麻烦是拉出多个个人的办公地点,然后解析每个人各自的办公地点以将其放置在现场。任何想法或帮助将不胜感激。
这是表格,如您所见,它可以填充一个人的办公室,但不能填充其他人:
sharepoint-2013 - support the secondary domain with Classic authentication for SharePoint people picker
We migrated few SharePoint 2010 site collections to SharePoint 2013 but had to use classic authentication to preserve the users that were already in groups.
We have 2 AD domains one-way trust.
The problem now is that people picker in these site collections only show, existing users from the trusted domain and for new users, only {trusted domain}{user id} is possible for adding new user from the trusted domain.
So I performed:
STSADM.exe -o setapppassword -password <> STSADM.exe -o setproperty -pn peoplepicker-searchadforests -pv "forest:Main.local, main\me,myPassword; domain:second.local, main\me,myPassword" -url https://sites.contoso.com/
Now I could not even add users using {trusted domain}{user id}. No way to add any users from the trusted domain
I checked the properties Peoplepicker_peopleeditoronlyresolvewithinsitecollection and Peoplepicker_onlysearchwithinsitecollection they are either 'No' or do not exist.
What else can I do to support the secondary domain?
sharepoint-2013 - 抱歉,我们无法访问服务器
我们已将站点从开发机器恢复到登台。我们的站点中有人员选择器列表,该列表在开发中运行良好,但在登台时显示消息“抱歉,我们无法访问服务器。”。
我尝试在列表(Stag)中再创建一个人员选择器列,但新列也给出了相同的错误。
如果我在新列上创建新列表到其他列表(stag),它工作正常。
任何人都可以帮助我。
swift - 为什么 ABPeoplePicker 会在控制台中引起大量警告?
在 OSX 的全新 Swift 应用程序中,我ABPeoplePickerView
在窗口中放置了一个。除了导入 AddressBook 并为 peoplepicker 创建一个出口外,我没有添加任何代码。在运行应用程序时(成功 - 选择器工作正常),控制台充满了大约 30 个警告,如下所示:
AddressBookTest2[47632:12458347] [错误] 警告:动态访问器在解析类“ABCDInfo”上的选择器“uniqueId”时未能找到实体 ABCDInfo 的“uniqueId”的@property 实现。你还记得在@implementation 中声明它@dynamic 或@synthesized 吗?
我应该担心吗?还是我错过了什么?
javascript - 从 SharePoint peoplepicker 获得多个返回以存储在列表中
我不断收到“您只能输入一个名字”的消息。在我使用以下代码创建的 peoplepicker 输入框(div)中:
即使它具有“模式['AllowMultipleValues'] = true;” 声明,在我必须将用户输入 peoplepicker 放入的 div 中,我仍然得到唯一一个名称允许的消息。为什么?
它允许我输入多个名称并从弹出的下拉列表中选择名称,但似乎不允许我在收集名称时从输入框中收集所有名称。
javascript - Sharepoint-2013 用活跃用户部门填写字段
我有一些代码将在 SP PeoplePicker 中查找用户并返回用户的部门。
我想要实现的是用当前用户的部门自动填充一个字段,因为我不想要 peoplepicker 字段。当前的用户数据应该是可检索的,或者我应该能够在没有人员选择器字段的情况下通过人员选择器进行搜索。
因此,我将以下脚本添加到内容编辑器中:
请注意,我无权访问 Sharepoint Designer。我试图让这个工作只从网络视图。
此外,如果答案需要 AJAX 或从 httpget 帖子返回值,请您详细回答,因为我以前从未使用过 AJAX,并且在接收来自 Web 服务器的响应方面经验有限。
提前致谢!