.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

updating People Picker field value

Posted By:      Posted Date: December 04, 2010    Points: 0   Category :SharePoint

Hi all

I have a Sharepoint List(Tasks) with field "Contact person" (Field type people and group)

I have user(RVN) who is active directive user(domain user) ,but not the member of any sharepoint site or group.

how to create an item in task list with contact person as "RVN"(who is not member of any sharepoint group but he  is domain user) through code

same action is possible from site(browser), how to do the same through code.



View Complete Post

More Related Resource Links

How to set a string field with people picker control group

Hi Guys I have a problem with a form list, when I need to set a string field with de content of people picker control that have more than one "user". Is there any way to put in string a list of user like the people picker control shows in a form? The really problem is I don't know how to read an array of user in a formula rule. any example or idea should be appreciated. tnks.  

filling current user name in people picker field when loading form using javascript


Hello guys,

I am looking is there any way to fill the current user's name in people picker field in newform.aspx using javascript?

If you anything, please let me know 


Updating a List item field value in a SPD Workflow is setting Date fields to null

Hello everybody,I faced a very weird behavior while creating a workflow in SPD against a Document Library.Here is the case:1- Create a document library in sharepoint site.2- Add a custom column of type DATE.3- Upload any document to the library4- Edit the item metadata and set the custom date field to any date you want.5- Now using sharepoint designer, create a very simple Workflow with only one action that updates the current item "Title" field to any value. (Note: In my case I set the workflow to start manually and not automatically)6- Save the workflow and then start it on the uploaded item.7- Now check the value of the date column after the workflow is finished.8- You will see that the Date field is Empty... (very weird)Notes:   1-This behavior will not appear on a standard list. it is only appearing in a Document library.  2- I am using WSS 3.0 SP2 + MOSS 2007 SP2. Also SharePoint designer 2007 SP2Did anyone face this situation and does it have a fix, or am I doing something wrong here... Please help.Regards,Maheed

Get Value of People Picker in Sharepoint

Hi Guys I have One Field called Employee Name with Field type Person or Group and second field UserID with field type is single line of text. Now i enter lets say abc xxy as name as far knowledge i know people picker store value like domain\axxy. I was wondering is there anyway with help of jquery or javascript to get axxy in Userid field once someone enter Employee name Thanks Ron

Authentication for people picker

Hi All, People picker failed to track for the domain user. an error says "No Exact match was found"   I have look into many articles and one of it actually did solved my case. But i do not know what is the logic behind.   My web application's app pool is run under local account. When i try to create a site collection and people picker failed to match with domain user. I changed the app pool account(Identity) to a domain account to run the app pool. Then i try to create site collection, and people picker can match with the domain user. I do not know why. Can please brief me on the logic behind? Possible to trace for the domain user while the web app pool is running under local user account? This is a standalone farm but joined to a domain. Whole farm is using local user account to run the service. Thanks in advance.   Regards Jason  

User display Name & People Picker

Hi, We wanted to use a web application without user profile service. We have added users their display name is always domain\username. Is it that without user profile service display names will not be updated. But my understanding is that people picker also returns display name. Is it something else we need to configure to get the displayname from the people picker itself.Satheesh

Activiate Email forwarding with Person Group Picker field

I have inserted 3 person group picker fiels.  I need to set them up so when a user selects a user, it shoots off an email.  I was told that I can set this up in SP designer via a workflow?  If so, can anyone let me know how to set this up properly? Thanks!  Bill KreuderIm a new MS CRM Consultant that is learing all things CRM. Im very excited about 4.0!!!!

People Picker & Replicate Permission

Hi, We have a IT env in a test domain and it is one way trusted to the domain where the actual users are. Recently we have tried adding a new web application for a different domain users (which is again one way trusted). But the people picker in this does not return any result. Does the account which is used for people picker need replication directory permission on that domain. And the ULS log says: (All these are Verbose information) SearchFromGC name = domain2.company.com. start SearchFromGC name = domain2.company.com. returned. Result count = 1 GetAccountNameFromSid "0x010500000000000515000000358A021AB47B733407E53B2BD9260500" start GetAccountNameFromSid "0x010500000000000515000000358A021AB47B733407E53B2BD9260500" returned. returnValue=False ------------------ Can someone help me what could be the issue.  Satheesh

People Picker gets error when selecting user from a trusted domain(one way forest trust)

  Hello all,   Our current setup is SharePoint 2010 Foundation server in one external forest(Trusting forest), and trying to have users in a separate internal forest(Trusted forest) access the site. The external forest's DC and SharePoint server are in a DMZ separated by a firewall with the internal forest's DC and users. A one way transitive forest trust was successfully created and has been validated. On SharePoint, we're ran the sts commands to set the setapppassword as well as the peoplepicker-searchadforests adding the domain that the SharePoint server is in, as well as the trusted forest. An iisreset was issued after running these commands. In SharePoint, we can then search for users from the trusted domain, and select the users in the Select People page, but when hitting the final Ok, an error is received: An unexpected error has occurred in which a correlation ID is provided. Reviewing the SharePoint logs we find the following: <!-- /* Font Definitions */ @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-520092929 1073786111 9 0 415 0;} @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-520081665 -1073717157 41 0 66047 0;} /* Style Defin

bind values for the drop down based on people picker value change

hi, i have a two lists in my sp. list 1 name  items user1 item1 user1 item2 user2 item1   and list 2 is in this way in this i have a people picker and a drop down when ever i change the name in people picker the value should get filled from list 1 and fill in drop down list so i need to get the on text changed event of people picker and bind it in the dropdown list could some help me out in fixing thisjayaraja

Problem updating a boolean field

I have a button in a listview that updates a boolean field for the selected record. The button calls a method (ObsoleteOffice) in my BLL that sets the field (IsObsolete) to true...please see below for the code. However, the IsObsolete field never gets updated, nor does it throw an error.  In addition, the method works with string fields just fine, but nothing happens with the boolean field.  I would be grateful if anyone could shed some light on what I am doing wrong. Thanks.   //Method: ObsoleteOffice [System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Update, true)] public bool ObsoleteOffice(int officeID, bool isObsolete) { offices.OfficesDataTable offices1 = Adapter.GetByOfficeID(officeID); if (offices1.Count == 0) // no matching record found, return false return false; offices.OfficesRow office = offices1[0]; // office.DateModified = DateTime.Now; office.IsObsolete = true; //Update the office record int rowsAffected = Adapter.Update(office); //Return true if exactly one row was updated, otherwise false return rowsAffected == 1; }  

People Picker Render Error in Document Information Panel

I created a Content Type and added 3 columns.  One of those columns is a People Picker type column. When I open the Content Type by going to NEW -> MyContentType in a document library in SharePoint it opens in Microsoft Word but the People Picker control does not render correctly in the Document Information Panel. There is no error - just a display of a broken control. Is there a fix?

people picker problem, with multiple select lose the list.

<!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} p {mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} --> Hi guys I have a master table with configuration for reports. when I load a InfoPath form (2010) for new report I have a approvers that set ok  , and I have  Notifies (multiple people) when I load a value form master they left me in the field only the first value(people) and lose the others. Do you know if there any way to load a multiple people value in people picker control?   Thank in advance Ramiro

People picker

Dear Forum, I am a newbie in SP 2010 - so hopefully you are patient with me :-) I need some help on the following issue: I have started with defining a list using a filed for filling in a "Line Manager" (because people in my organisation did not fill in the "responsible manager" in Exchange/AD). The idea was to use a filed of Type "Person or Group" and to call this "Line Manager". When the user filed in the form a workflow is sending this to the "line manager" via email. For me being an administrator it works but for a "normal" user not - it is just running and "searching" but not showing anything. If I explain the filed that it should be related to the group "Viewers" it is picking all userids and we can select an userid for sending emails. But we do not want to add new users to this group - it should pick an userid from "All users". Sorry - I am really a newbie and maybe this is really a piece of cake - please be patient with me :-)   Thanks a lot. Manni

bind values for the drop down based on people picker value change

hi, i have a two lists in my sp. list 1 name  items user1 item1 user1 item2 user2 item1   and list 2 is in this way in this i have a people picker and a drop down when ever i change the name in people picker the value should get filled from list 1 and fill in drop down list so i need to get the on text changed event of people picker and bind it in the dropdown list could some help me out in fixing thisjayaraja

A customized EditForm.aspx page giving error because it has a "People and Group" field with a "Allow

My customized EditForm.aspx which has a "People and Group" column with the "Allow multiple selections" property as "Yes" was working fine until the Agusust cumulative update was applied into the MOSS server. Now it's giving me the error: "An unexpected error has occurred". Needless to say, when I change the "Allow multiple selections" property to "No", the customized EditForm.aspx page works fine.Forgetting whyMicrosoft introduced this error for now, is there a workaround that you are awre of?

read only to people picker

hi all, i have a sharepoint list where in if groupA user is accessing the site i would like to make the people picker to read only  and when people from groupB logs in they can add users in people picker. how would i do this. ?jayaraja
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend