peoplepicker

Office ui Fabric People Picker, pass varaibles to onChangeEvent

怎甘沉沦 提交于 2020-04-30 11:47:47
问题 I would like to know if there is a possibility to added a variable to the default onchange event of the office ui fabric react People Picker component. In the onchange event default is onChange?: (items?: IPersonaProps[]) => void I would like to pass an variable to add to an array like Key Value for using later in my code. 回答1: You can build a HOC to achieve this. Define // Your HOC component interface Props { yourCustomState: string // get custom value from props ... return ( <> <Select

Office ui Fabric People Picker, pass varaibles to onChangeEvent

时光毁灭记忆、已成空白 提交于 2020-04-30 11:44:49
问题 I would like to know if there is a possibility to added a variable to the default onchange event of the office ui fabric react People Picker component. In the onchange event default is onChange?: (items?: IPersonaProps[]) => void I would like to pass an variable to add to an array like Key Value for using later in my code. 回答1: You can build a HOC to achieve this. Define // Your HOC component interface Props { yourCustomState: string // get custom value from props ... return ( <> <Select

People picker control implementation in asp.net mvc application

青春壹個敷衍的年華 提交于 2019-12-24 02:09:28
问题 I want to include the Sharepoint people picker control type in my application, My app is developed in asp.net MVC. is there a way so that i can include the GAL feature in my asp.net application. This should work even if the outlook is not installed in user pc. 回答1: Taken from this page dated March 1 2013 "SP controls can only be used on SP hosted pages. Currently the only control designed from the ground up to be consumed on all page types (provider-hosted, auto-hosted or sp hosted) is the

Execute Javascript only on page load, not PostBack (SharePoint)

故事扮演 提交于 2019-12-23 17:58:55
问题 I'm trying to execute some JavaScript on page load on a custom page on a SharePoint site (it populates the people picker with the current user). The problem is that the code executes on postback too, which I don't want as it will reset any changes to the people picker. I've tried using if(!IsPostBack) to no avail. Everything errors out at that point, giving SCRIPT5009: 'IsPostBack' is undefined. I can't find anything online to help with this. Any ideas? Thanks 回答1: You can create a function

Customize MOSS People Picker (PeopleEditor) Control

拥有回忆 提交于 2019-12-06 04:43:39
问题 I have modified my MOSS 2007 configuration to query a given target AD successfully. I would like to show some custom LDAP fields (such as country) in the PeopleEditor control and allow users to search against these fields. Can someone point me towards useful resources/tutorials showing how to do this? Thanks, MagicAndi. 回答1: You need to inherit from the EntityEditor control (just as PeopleEditor does) and write your own queries and validation. Some background (read community content):

How to select a contact with ABPeoplePickerNavigationController in Swift?

霸气de小男生 提交于 2019-12-03 11:23:13
问题 I have added the ABPeoplePickerNavigationController into my first view controller. I want that when I select a contact show the info to show in other view controller, but I'm trying use my code and this not show never when I click in a contact. This only open the contact into native app ABPeoplePickerNavigationController . var people = ABPeoplePickerNavigationController() var addressBook: ABAddressBookRef? func extractABAddressBookRef(abRef: Unmanaged<ABAddressBookRef>!) -> ABAddressBookRef?

How to select a contact with ABPeoplePickerNavigationController in Swift?

时光毁灭记忆、已成空白 提交于 2019-12-03 01:45:40
I have added the ABPeoplePickerNavigationController into my first view controller. I want that when I select a contact show the info to show in other view controller, but I'm trying use my code and this not show never when I click in a contact. This only open the contact into native app ABPeoplePickerNavigationController . var people = ABPeoplePickerNavigationController() var addressBook: ABAddressBookRef? func extractABAddressBookRef(abRef: Unmanaged<ABAddressBookRef>!) -> ABAddressBookRef? { if let ab = abRef { self.view.addSubview(people.view) return Unmanaged<NSObject>.fromOpaque(ab

How to specify a group when displaying an ABPeoplePickerNavigationController

半世苍凉 提交于 2019-12-02 08:26:45
问题 How do you specify a group when initially displaying an ABPeoplePickerNavigationController (so it doesn't automatically display "All Contacts")? 回答1: Yeah, I do. I had to make it work. Set your class as the delegate of the people picker (pp.delegate = self;) Then implement: - (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated { if([navigationController.viewControllers count] > 1) {

How to specify a group when displaying an ABPeoplePickerNavigationController

a 夏天 提交于 2019-12-02 04:51:47
How do you specify a group when initially displaying an ABPeoplePickerNavigationController (so it doesn't automatically display "All Contacts")? David H Yeah, I do. I had to make it work. Set your class as the delegate of the people picker (pp.delegate = self;) Then implement: - (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated { if([navigationController.viewControllers count] > 1) { navigationController.delegate = nil; [navigationController popViewControllerAnimated:NO]; } } It seems to

Retrieve Email Address from sharepoint people picker using javascript

≡放荡痞女 提交于 2019-12-01 09:31:25
I am using SharePoint 2007. I have a custom aspx page in the layouts folder containing a people picker ( PeopleEditor ) control. Users can enter n nunmber of users in the control. I want to retrevie the users' emails from the people picker control using javascript, can someone please help. General People fields are pretty complicated, but I'll do my best to explain what I've found out from doing some work with them while updating my library ( SPUtility.js ). You can take a look at the SPUserField class in the library to see. I mostly used Firebug + Firefox to reverse engineer the field.