SharePoint 2010事件日历-根据级联下拉字段为组人员选取器的成员设置下拉列表 [英] SharePoint 2010 Event Calendar - Setting Dropdown to Members of Group People Picker based on Cascading Dropdown Fields

查看:83
本文介绍了SharePoint 2010事件日历-根据级联下拉字段为组人员选取器的成员设置下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

需要一些帮助.我有一个活动日历,我打算在其中使用Mark Rackley的HillyBilly级联来协助级联下拉菜单,但是在上一个下拉菜单中需要一些帮助.

Need some help.  I have a Event Calendar where I plan to use Mark Rackley's HillyBilly Cascade to assist with the cascading dropdowns, however need some assistance with the last dropdown. 

因此,因为我使用的是事件内容类型,所以无法使用InfoPath.

So because I am using the Event Content Type I cannot use InfoPath. 

因此,我对两个不同的列表有两个查找字段:网站"和组". 网站列表"只是网站"列表和一些其他定义网站的列,例如地址,城市,州,邮政编码,网站标识符等.组列表是团队列表 具有以下列:说明",站点",小组人员选择器"(已定义成员).

So I have two lookup fields to two different Lists: Site and Group.  The Sites List is simply a list of Sites and some other columns that define the site, like address, city, state, zip code, site identifier, etc.  The Group List is a list of Teams that have the following columns, Description, Site, Group People Picker (with members defined).

所以我想发生的事情是用户选择站点,然后选择组(描述),并在另一个下拉列表中填充可以从中选择的该组成员的列表.

So what I want to happen is the user picks the Site, and the Group (Description), and another dropdown populates with a list of members of that group that they can pick from.

我们将不胜感激

Jawnne

推荐答案

嗨Jawnne,

由于您无法使用InfoPath表单,因此可能需要代码.使用代码从组"列中获取组信息.并使用 get_siteGroups 功能可获取网站集中所有网站中的所有群组,然后根据群组名称或ID从群组集中找到该群组.从组中检索用户并填充下拉列表.

As you cannot use the InfoPath form, to achieve that, we may need code. Get the group information from the Group column using code. And use get_siteGroups function to get all groups in all websites in the site collection, then find the group from the group collection based on the group name or id. Retrieve users from the group and populate dropdown list.

这里是一个有关如何使用CSOM从网上论坛中检索用户的示例:

最好的问候,

Linda Zhang


这篇关于SharePoint 2010事件日历-根据级联下拉字段为组人员选取器的成员设置下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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