Sorting and filtering by select-multi person or group field in the list in SharePoint 2013

Hi everybody,
In SharePoint 2013, I have defined a column as "Person or Group" field, which you allow for multiple selections. when I try to sort/filter it by this field in the list. The field doesn't show up in the dropdown. If I changed "Allow multiple
selections" option to "No" by clicking the column name to edit it in "List Settings", the field can show up sort in the dropdown.
How about support sorting and filter by select-multiple "Person or Group" field in sharepoint 2013?
BTW, in SharePoint 2010, it can support this issue no matter what the "Allow multiple selections" option the request is.
Any help would be great!
Thanks,
Jodie

Hi Jodie,
Can you please give this as a try.
To fix the Filter Issue on Assigned To Column. We need to run the following scripts.
The field which allows more than one values or which allows multiple selections. The multi-valued fileds are non-sortable,
non-filterable. Multi-valued fields cannot be indexed
$web=Get-SPWeb
$list=$web.Lists[] $field=$list.Fields[ColumnName] $strSchema=$field.SchemaXml $str=Schema$strSchema.Replace("Sortable=`"FALSE`"","Sortable=`"true`"")
$field.SchemaXml = $strSchema
Krishana Kumar http://www.mosstechnet-kk.com
Thanks for your reply, I have tried to run the scripts, but it still cannot work. The following is my scripts:
$web=Get-SPWeb 'http://cst-server-01'
$list=$.web.Lists["Product Request"]
$field=$list.Fields["Applicant"]
$strSchema=$field.SchemaXml
$str=Schema$strSchema.Replace("Sortable='"FALSE'"", "Sortable='"True'"")
$field.SchemaXml = $strSchema

Similar Messages

  • User and group field values not propagating in Sharepoint 2013 variation

    Hi,
    I have a issue, we have a User and group field in my Content type and this content type is attach to Pages library.
    I created one Page in source variation site and fill User and Group field with two user one is domain user and another is sharepoint\system account user.
    After variation work and page propagate to target variation , there is only sharepoint\system account and no domain user in user and group field.
    *****The main issue is domain user are not propagating in target variation site's fields.
    Thanks,
    dinesh

    can any one hep me on this

  • Problem with sorting and filtering of table

    Hello,
    using VC 7.1 SP5 I have created [this|http://img232.imageshack.us/img232/2460/screenshotsr0.png] model. The webservice returns a collection of structured elements. The table is meant to display values of top-level attributes. This works as expected.
    However, the table cannot be sorted or filtered. What is the reason for this? How can I fix that?
    I tried to store the result of the web service in a data bridge. That did not succeed.
    Best regards
    Alexander

    Hi Natty,
    How are you trying to sort it?
    I want to be able to sort the table by clicking on the table column headers. Furthermore, I want be able to filter the table by using the built-in table feature. However, table sorting and filtering seem to be disabled for this particular table, whereas other tables in my model provide the desired features.
    Best regards
    Alexander

  • Split Grid, loose sorting and filtering

    Is this the intended behavior? I would rather have my sorting, and filtering retained when using the split knobs.

    While it is not intended, it is a side effect of splitting. When you split the data grid you have 2 full grids which don't know anything of each other. So in the top you can use 1 filter while in the bottom use another and then compare data between the two.
    -kris

  • I purchased the Adobe pdf Pack to combine 50 PDF files to one and when I select them from my folder it claims "the files are not in a format not supported for conversion to PDF".  They already are pdfs, what am I doing wrong?".

    I purchased the Adobe pdf Pack to combine 50 PDF files to one and when I select them from my folder it claims "the files are not in a format supported for conversion to PDF".  They already are pdfs, what am I doing wrong?

    Moved to Adobe PDF Pack (read only)

  • I am trying to free up some room on my touch and am unable to delete any songs or books from the listing.  With iTumes open and my touch listed I open the touch.  I then select the items I want to delete from the touch and press the delete button.

    I am trying to free up some room on my touch and am unable to delete any songs or books from the listing.  With iTumes open and my touch listed I open the touch.  I then select the items I want to delete from the touch and press the delete button.  Nothing happens.  I have also tried to right click on the item, but a delete option is not listed.  What do I need to do to get rid of some books?

    Open itunes, connect ipod, go to each tab, select what you want to be on the ipod, sync

  • Mail error "Verify that you have addressed this message correctly. Check your SMTP server settings in Mail preferences and verify any advanced settings with your system administrator.Select a different outgoing mail server from the list"

    The Mail application has suddenly started giving error:
    "Verify that you have addressed this message correctly. Check your SMTP server settings in Mail preferences and verify any advanced settings with your system administrator.Select a different outgoing mail server from the list"
    It was working fine till yesterday, suddenly it stopped. I have 3 email accounts configured here, 2 are on exchange servers and one yahoo. Connection verification works and shows all servers as green.
    Any inputs?

    I had 3 accounts, 2 ms exchange accounts and 1 yahoo. After removal of yahoo, everything is back to normal.
    Regards
    Rohit

  • How to Insert Sharepoint 2013 Person or Group Field using VBA

    Hello,
    How to Insert Sharepoint 2013 Person or Group Field using VBA , I tried set the field with ID / ID;Name / Name
    but all failed, Please advice 
    Function SetSP_Field(F_Yer As Single, F_WekNo As Single, F_ProjectNum As String, strField As Variant, strFieldValue As Variant) As String
    ' test code
        Dim rst         As Recordset
        Dim strSQL      As String
        Dim SP_RecSet   As ADODB.Recordset
        Set SP_RecSet = New ADODB.Recordset
        SetSP_Field = False
        strSQL = "Status Report"
        On Error Resume Next
        Call SP_Connect(2)
        strSQL = "select " & SP_List & ".* From  " & SP_List _
               & " Where [Year] = " & CInt(F_Yer) _
               & "   and [WeekNo] = " & CInt(F_WekNo) _
               & "   and [Compass_Code] = '" & F_ProjectNum & "' ; " _
    '           & " Set " & strField & " = " & strFieldValue
        'Debug.Print strSQL
        'Debug.Print SP_CN
        SP_RecSet.Open strSQL, SP_CN, adOpenStatic, adLockOptimistic
        If SP_RecSet.RecordCount = 0 Then
            Debug.Print "Record for project: " & F_ProjectNum & " not found"
            LogFile.WriteLine ("Record " & strID & " not found")
        End If
        If Not SP_RecSet.EOF Then
            'SP_RecSet.Edit
            SP_RecSet.Fields(strField) = strFieldValue
            SP_RecSet.Update
            If Err.Number <> 0 Then
                MsgBox ("SP Update Error: " & Err.Description)
                GoTo Exit_Fun
            End If
            SetSP_Field = True
        End If
    Exit_Fun:
        SP_RecSet.Close
        Set SP_RecSet = Nothing
    End Function

    Hi Tim,
    Let’s verify the followings:
    Whether this issue occurred for other lists in the same site.
    Whether this issue occurred for all users who don’t have full control.
    Whether this issue occurred on other sites.
    When you created the people & group column, which show field did you used? Please try to use a different show field for the people & group column, compare the result.
    In addition, please check if the link is useful:
    http://www.learningsharepoint.com/2013/08/21/empty-value-in-people-picker-after-saving-the-list-form-in-sharepoint/
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to modify person or group field value with new value

    Hi
    I have person or group field having property Person Only.
    Thsi firls already have one value. Now I want to update it but this code to update value is not working.
    string myName = @"ABC\myname";
    web.EnsureUser(myName);
    SPUser myUser = web.SiteUsers[myName];
    SPFieldUserValue myNamevlaue = new SPFieldUserValue(web, myUser.ID, myUser.LoginName);
    oSplistItem["My_x0020_User"] = myNamevalue;
    oSplistItem.Update();
    I am getting myNamevalue correct in the veriable. But why its not updating in the list?
    is there any issue in the above code?
    Do I need to delete previous value and then update new value in this field? How?

    Hi,
    The format of the user value in people/Group field must be
    ID;#Name, you can use the following code snippets to update the people/group field.
    string loginName = "ABC\\myname";
    SPUser user = web.SiteUsers[loginName];
    SPList list = web.Lists.TryGetList("ListName");
    if (list == null)
    Console.WriteLine("list is not exist!");
    return;
    SPListItem item = list.GetItemById(3);
    item["My_x0020_User"] = user.ID.ToString() + ";#" + user.Name;
    item.Update();
    Thanks,
    Jason
    Please remember to mark the reply as answer if it help, and unmark the answer if it provide no help.

  • How to add users from person or group field in a sharepoint list to sharepoint group

    Hi,
    How to add users(single or multiple) from person or group field in a sharepoint list to sharepoint group programmatically?
    Any suggestions would be appreciated.
    Thank you,
    AA.

    Hello,
    Use SPGroup.AddUser() method to add user in group. I have just written sample code in notepad so it is not tested:
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using(SPSite Site = new SPSite(SPContext.Current.Site.Url))
    Using(SPWeb Web = Site.OpenWeb())
    SPList list = web.Lists["ListName"];
    SPQuery query=new SPQuery ();
    query.Query = "<Where><Eq><FieldRef Name='Title' /><Value Type='Text'>Test</Value></Eq></Where>";
    SPListItemCollection items = list.GetItems(query);
    if(items.Count > 0)
    foreach(SPListItem item in items)
    //Get USers from person or group column
    SPFieldUser userField = (SPFieldUser)item.Fields.GetField("Users");
    SPFieldUserValueCollection userFieldValueCollection = (SPFieldUserValueCollection)userField.GetFieldValue(item["Users"].ToString());
    SPGroup spGroup = spSite.RootWeb.Groups[groupName];//group name
    if (users.Count != 0)
    bool isUserInGroup = false;
    foreach (SPFieldUserValue user in users)
    foreach (SPUser item in spGroup.Users)
    string itemUserName = item.LoginName;
    string UserName = user.User.LoginName;
    if (itemUserName == UserName)
    isUserInGroup = true;
    break;
    if (!isUserInGroup)
    spGroup.AddUser(user.User);
    The above code will query list item and then get users from "Users" column. Now it will check whetehr user is already in group not, if not then add user in group.
    http://rajanijilla.blogspot.sg/2012/09/add-users-to-group-programmatically.html
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • HT1310 I press option when starting up my computer and it just hangs or at least never gives me the list of startup disks before it's booted up.

    I press option when starting up my computer and it just hangs or at least never gives me the list of startup disks before it's booted up. I can choose which startup up disk when I'm already booted up from settings --> Startup Disk but how do I know if my Macintosh HD internal drive disk fails I'll be able to boot from my supposedly bootable backup drive?
    What am I missing? I have the latest Mountain Lion, could this be bug in that new Op System?
    Does the startup drive list (before bootup) only show up if the Macintosh HD is not bootable (crashed or broken)?
        Dave

    Replugging my keyboard into my front USB2 slot was half the solution. I had my keyboard plugged into a KVM switch which goes into the back. The other half was that I needed to unplug my backup firewire hard drive from the front port to a chained drive with the source hooked into the back of the Mac Pro. Not sure if it was the cable or the firewire slot that gummed up the hardware startup hard drive selection diaglog.
    I also tried resetting the NVRAM and only got one Mac startup sound. That didn't seem to do it but then again it could of been a necessary condition as well.
    Thanks everyone for your help.
       Dave

  • Copy person & group field value to another person or group field programmatically

    Hi 
    I have one user list in SharePoint sitecollection1 having User in Title(having simple user name) and UserName in Person or Group type field.
    I want to copy this list into my site list with same column names programatically using timer job.
    How I can copy the person or Group field from siteColletion1 to person or group field of sitecollection2(my site),
    as both column types are same.
    Pleas suggest any solution.

    I am getting user name and user id using following code,
    foreach (Microsoft.SharePoint.Client.FieldUserValue userValue in oclistItem["UserName"] as Microsoft.SharePoint.Client.FieldUserValue[])
    string username =    userValue.lookupValue.tostring();                               
    But how to get the login name ? or how can I get the User Object from this field?
    Anybody got this type of issue before.
    Please suggest any solution

  • Save history values of person or group field in another person or group field

    Hi
    I have a person or group field in sharepoint list that users can assign task to colleagues by this column. Every time value of this field changed and I want to save
    these values in another person or group field (for history and 
    filter view base on it).
    How I can do this?
    Thanks.

    I create workflow variable and give it these values:
    First Person/Group value,(Display Names, Semicolon Delimited),
    Second Person/Group value,(Display Names, Semicolon Delimited)
    Then I set this variable to Second Person/Group but it's give me error and does not work.

  • Person or Group colum in the SharePoint list retrieves empty value for Mobile phone property

    Person or Group colum in the SharePoint list retrieves empty Mobile phone for some users although thoses users have Mobile Phone values in the User Proifles. This happens only for some users. For some users  it shows Mobile phone for
    some days and after some days it dess not show Mobile Phone though Mobile Phone entries are in the User Profiles for those users.
    Appreciate any help to fix this.
    Thanks in Advance!
    Narayana Reddy
    Narayana Reddy G

    Hi Narayana,
    According to your description, my understanding is that the person or group column retrieved an empty value for Mobile phone in SharePoint 2010.
    Please go to the hidden User Information List using
    http://<SiteCollectionUrl>/_catalogs/users/detail.aspx , check the value of Mobile phone.
    Please go to CA->Monitoring->Review job definitions, scroll to User Profile to SharePoint Full Synchronization
    and
    User Profile to SharePoint Quick Synchronization, make sure they work well.
    In addition, please take a look at :
    http://donalconlon.wordpress.com/2012/03/02/sharepoint-user-information-list-is-not-being-updated/
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • If I am browsing on site such as Ebay or any shopping site, and click on an item, when I return to the search page I am once again at the top of the page and have to search down for where I was in the list of items.

    If I am browsing on site such as Ebay or any shopping site and click on an item, when I return to the search page I am once again at the top of the page and have to search down for where I was in the list of items. This is not only on Ebay it is everywhere I search. Firefox goes back to the top of the page . It is annoying to have to figure out exactly where I was if I left the page and then returned. This is a hinderance when using Firefox. I have considered uninstalling it because of the inconvenience of 're-searching' after already doing a search. Firefox used to take me right back to where I was if I left a page, but that feature is not working now. I am not sure how to change this in the settings.

    Open the Finder. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following:
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.

Maybe you are looking for

  • Multiple digital signatures in one file

    I have a client who wants me to combine 4 different forms into one--then--require a digital signature by the same person after each independent form. So that would be 4 digital signatures total. And all identical. I'm using a different name per each

  • I want someone to help me redesign an existing site using Dreamweaver.

    I am a marketing consultant and built a web site several years ago with FrontPage as the tool. I've now downloaded it into Dreamweaver and can edit it there but want to find a template (or a consultant) who can help me take it to another level. When

  • Error capturing SOAP fault for Sync Messages

    Hi We have a Sync interface which makes a Proxy call from ECC to PI and then PI makes Soap Sync call to Web application. We are having issues when handling Exceptions. Sender is getting misleading errors in response, even though they are application

  • View excel - contentserver.dll

    hello, we have an file (xls type) attached to an purchase record (in the me53n transaction). The attached file is stored to archive repository . when try to view this xls file from (in transaction me53n again], the file is downloaded as contentserver

  • Help with java and adobe

    I have CS6 and ever since I installed Yosemite on my mac none of my adobe products will open and it keeps giving me a message saying I must install legacy java se 6. I updated my java already and I am still running into issues. Please help