unable to bind user to peopleeditor programmatically after SharePoint 2010 August 2011 CU

I have a drop-down selected index change event to set value for a people editor control. This works fine for the first time. But the next time I change a value in the drop-down, the people editor wont change if it already holds  a value. I need to clear it and then  change the drop-down value,. This issue occurs after August 2011 CU update and does not happen in other environment where i dont have this update applied.

Can someone officially confirm if this a known issue with August 2011 CU? I see this is being reported both in SP2010 and  MOSS 2007 after their respective August 2011 CU updates. Refer http://blogs.technet.com/b/stefan_gossner/archive/2011/08/31/august-2011-cu-for-sharepoint-2007-and-2010-has-been-released.aspx

 

 


  • Edited by priyaraj Friday, November 04, 2011 6:14 PM
November 4th, 2011 9:08pm

Ji,

The People Picker issue is a known issue..
Add code to the OnLoad event when the page has been posted that reads the comma separated accounts value and the people picker values get corrected.

OnLoad event

if (IsPostBack)
{string curAccounts = this.peoplepickercontrol.CommaSeparatedAccounts;}

-Ivan

 

 

 

 

Free Windows Admin Tool Kit Click here and download it now
November 6th, 2011 7:38am

I am also having this issue. The people picker is initially loaded with a user, then when a drop down list item is changed the people picker value is set to another user in code behind. All appears to work when debugging, but once finished, the value hasn't changed and is still set to the initially loaded value.

Are you able to explain in a little more detail how it was solved? Using the onLoad code didn't fix my problem (I tried page.OnLoad and peoplepicker.OnLoad but both run before the selected index changed event). Do you have to set the people picker to be blank before this?

 

- Rebecca

January 16th, 2012 12:05am

Did you found any solution? I am getting the same problem?

?

Free Windows Admin Tool Kit Click here and download it now
February 20th, 2012 3:04pm

No sorry :( the solution I was building ended up changing slightly and this functionality wasn't required anymore, I didn't have any extra time to keep looking into it. I would be very interested if an answer is found though.
February 20th, 2012 10:54pm

No sorry :( the solution I was building ended up changing slightly and this functionality wasn't required anymore, I didn't have any extra time to keep looking into it. I would be very interested if an answer is found though.
Free Windows Admin Tool Kit Click here and download it now
February 20th, 2012 10:54pm

 if (currentUser != null)
                            {

//Clear ppl column:: sharepoint ppl id:  peFinanceDepartment

                               peFinanceDepartment.Entities.Clear();
                                PickerEntity UserEntity = new PickerEntity();

                                // CurrentUser is SPUser object
                                UserEntity.DisplayText = currentUser.Name;
                                UserEntity.Key = currentUser.LoginName;

                                System.Collections.ArrayList entityArrayList = new System.Collections.ArrayList();
                                entityArrayList.Add(UserEntity);

                                peFinanceDepartment.UpdateEntities(entityArrayList); 


                                // Add PickerEntity to People Picker control
                                //peFinanceDepartment.Entities.Add(peFinanceDepartment.ValidateEntity(UserEntity));

                                // This should make People Picker control disable|readonly
                                //peFinanceDepartment.ShowButtons = false;
                                //peFinanceDepartment.AllowTypeIn = false;
                            }

or

if you clear using javascript plz follow below url

http://www.sharemuch.com/2011/12/04/how-to-address-sharepoint-2010-people-editor-issue-not-clearing/

Thanks

Reddy

                               
February 10th, 2015 6:44am

 if (currentUser != null)
                            {

//Clear ppl column:: sharepoint ppl id:  peFinanceDepartment

                               peFinanceDepartment.Entities.Clear();
                                PickerEntity UserEntity = new PickerEntity();

                                // CurrentUser is SPUser object
                                UserEntity.DisplayText = currentUser.Name;
                                UserEntity.Key = currentUser.LoginName;

                                System.Collections.ArrayList entityArrayList = new System.Collections.ArrayList();
                                entityArrayList.Add(UserEntity);

                                peFinanceDepartment.UpdateEntities(entityArrayList); 


                                // Add PickerEntity to People Picker control
                                //peFinanceDepartment.Entities.Add(peFinanceDepartment.ValidateEntity(UserEntity));

                                // This should make People Picker control disable|readonly
                                //peFinanceDepartment.ShowButtons = false;
                                //peFinanceDepartment.AllowTypeIn = false;
                            }

or

if you clear using javascript plz follow below url

http://www.sharemuch.com/2011/12/04/how-to-address-sharepoint-2010-people-editor-issue-not-clearing/

Thanks

Reddy

                               
Free Windows Admin Tool Kit Click here and download it now
February 10th, 2015 6:47am

 if (currentUser != null)
                            {

//Clear ppl column sharepoint ppl id:  peFinanceDepartment

                               peFinanceDepartment.Entities.Clear();
                                PickerEntity UserEntity = new PickerEntity();

                                // CurrentUser is SPUser object
                                UserEntity.DisplayText = currentUser.Name;
                                UserEntity.Key = currentUser.LoginName;

                                System.Collections.ArrayList entityArrayList = new System.Collections.ArrayList();
                                entityArrayList.Add(UserEntity);

                                peFinanceDepartment.UpdateEntities(entityArrayList); 


                                // Add PickerEntity to People Picker control
                                //peFinanceDepartment.Entities.Add(peFinanceDepartment.ValidateEntity(UserEntity));

                                // This should make People Picker control disable|readonly
                                //peFinanceDepartment.ShowButtons = false;
                                //peFinanceDepartment.AllowTypeIn = false;
                            }

                               
February 10th, 2015 6:48am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics