"Person or Group" Field in List instance (Schema.xml)

hi all,
I created new List instance and I added new Field Employee to the list instance. The Employee field  in the Schema.xml is like:
<Field Name="Person" ID="{f3c1416f-69dd-4172-b05f-5df45c86ee56}" DisplayName="Person" Type="UserMulti" Mult="TRUE" /></Fields>
and this work fine.
But I cant see the EntityEditor like below pic:
they are disapear.
Can anyone maybe help me?
P.S.  I created one column via UI on the same list and in the SharePoint Manager 2013.
Its the same I dont see the EntityEditor and here is the Schema.xml for the test column:
<Field Type="UserMulti" DisplayName="test444" List="UserInfo" Required="FALSE" EnforceUniqueValues="FALSE" ShowField="ImnName" UserSelectionMode="PeopleAndGroups" UserSelectionScope="0"
Mult="TRUE" Sortable="FALSE" ID="{aefd55b0-3d3e-44ba-a649-82391061ca38}" SourceID="{93681c67-ca5f-4598-a412-3efee82a18d6}" StaticName="test444" Name="test444" ColName="int3" RowOrdinal="0"
/>
thank you in advance
BR
Ahmad

Hallo Mr. Sabir,
sorry I was sick and I couldn't answer you before :-(.
I use SP 2013 (and not SP 2010, maybe I must Active a feature!) and in my Schema.xml I have exacly the Schema:
 <Field Name="Person"
             ID="{f3c1416f-69dd-4172-b05f-5df45c86ee56}"
             DisplayName="Person"
             Type="User"
             Required="FALSE"
             ShowField="ImnName"
             UserSelectionMode="1"
             UserSelectionScope="0"
             Group="Custom Columns"
             StaticName="MyUserColumn"
             />
srv206/Lists/CustomList/NewForm.aspx
when I open the above URL  I get like below picture:
if you or other one here have/has an advice or other idea thanks in advance
BR
Ahmad
SP 2013 & SPD 2013 & VS 2013 & MSSQL 2012

Similar Messages

  • How do I populate a "Person or group" field via Elements.xml?

    So I have created a field titled "EmployeeName" and it's a "Person and Group" type. (View the Schema.xml below)
    <Field Name="EmployeeName" ID="{8579a35a-71a8-4070-b907-b6ede0daa352}" DisplayName="Employee Name" Type="User" />
    Now, I'm trying to populate the column via the Elements.xml file. As you can see by the commented out code below, I've tried every combination and I'm still unable to populate this column:
    <ListInstance Title="Employee_Rec_list" OnQuickLaunch="TRUE" TemplateType="10000" Url="Lists/Employee_Rec_list" Description="My List Instance">
    <Data>
    <Rows>
    <Row>
    <!-- <Field Name="EmployeeName">i:0#.f|membership|[email protected]</Field>
    <Field Name="EmployeeName">i:0#.f|membership|[email protected]</Field>
    <Field Name="EmployeeName">0#.f|membership|[email protected]</Field>
    <Field Name="EmployeeName">#.f|membership|[email protected]</Field>
    <Field Name="EmployeeName">[email protected]</Field> -->
    <Field Name="EmployeeName">[email protected]</Field>
    <Field Name="Achievements">Rock Star</Field>
    <Field Name="Achieve_x005f_Des">Cras congue varius metus, in tincidunt metus Vestibulum vel turpis nec leo porttitor pulvinar fringilla ut lacus. a dictum aliquam. Pellentesque non felis cursus, lobortis, mattis arcu. Duis molestie nisi quis lectus tincidunt, a porttitor turpis iaculis. Donec condimentum, tellus sit amet hendrerit aliquet, est eros faucibus nulla, eu ultricies ligula ante id quam. Suspendisse suscipit orci sit amet vestibulum ultrices. Nunc dictum tortor non magna volutpat</Field>
    </Row>
    </Rows>
    </Data>
    </ListInstance>

    Ok I figured it out. You need to you use the users ID.
    <Field Name="EmployeeName">15</Field>

  • 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

  • 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

  • How to add a calculated field in a list definition (schema.xml)?

    Hello,
    I'm currently trying to add a calculated field to a list definition (schema.xml).
    I have put the following code at the end of the schema.xml for the list I want to create. But when I deploy and activate the feature for the list, it doesn't appear in the list field.
    <Field ID="{EE20EC4B-4216-4259-A84F-C478CE42B70F}" Name="EC_EventsMgmt_CalculatedTime" StaticName="EC_EventsMgmt_CalculatedTime" Group="EC_EventsMgmt" Type="Calculated" DisplayName="Calculated Time" Required="TRUE" Hidden="FALSE" ReadOnly="FALSE" Format="DateTime"> <Formula>=DATE(2009,1,1)+TIME(EC_EventsMgmt_ScheduleHour,EC_EventsMgmt_ScheduleMinute,0)</Formula> <FieldRefs> <FieldRef Name="EC_EventsMgmt_ScheduleHour"/> <FieldRef Name="EC_EventsMgmt_ScheduleMinute"/> </FieldRefs> </Field>
    Could you please give me some help and explain me why it is not working?
    Thanks a lot.

    Hi there.
    If I understand correctly, you create this list within the same feature?
    If so, the list isn't available during the propagation, and therefore the calculated field can't be added.
    If this is the case, then you could work around this by adding a feature activated event handler to your feature and add the calculated field programmatically in that event.
    Hope this helps.
    Regards,
    Magnus
    My blog: InsomniacGeek.com

  • 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.

  • 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.

  • 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

  • Update list definition schema.xml after deployment

    I was wondering if anyone here has any experience with updating the schema.xml file after deployment.  I have a solution that I will outline in this post, but I feel like it is a delicately balanced hack instead of a real solution.  Any Information
    that you can provide is greatly appreciated!
    To begin, I am trying to create a new taxonomy site column, use this new site column in place of an old one in an existing content type, and update the list definition (and all existing lists) to show the new site column instead of the old.
    The content type was originally deployed via an elements.xml file.  From what I understand, once deployed this file should never be modified.  So, via code I define my new site column, add the site column to the content type, and delete the old
    site column from the content type.  I perform an update(true) on the content type so that the change is pushed to all list instances.  At this point, I can go to any list and the new/edit form for each of those lists does not show the old site column
    but does show the new.  So far so good!
    There are two problems at this point.  If I try to create a new list from the definition, I get a list that contains the site column that I deleted AND the new site column.  Also, the deleted site column name still appears in the default view. 
    I tried removing the old and adding my new site column to the schema.xml, but this breaks all existing lists that were made from this schema.xml (specifically, it is a taxonomy field and none of the taxonomy fields work after updating).  I can create
    a new list from the list definition that works fine, but I still need existing lists to work. 
    The solution that I ended up on was JUST removing the no-longer-necessary field from the schema.xml, and then adding my new field to the ViewFields list in the schema.xml.  If I do this, everything is happy even though the only mention of the new field
    in the schema.xml is in the ViewFields section.
    So, with all of that said... does this make sense?  Am I doing this the correct way, or does this just work for now... and it will blow up later?
    Thanks in advance!

    I am sorry if I have caused confusion.  I am not doing what you think that I am doing :)
    All of my issues that I reference above are encountered when I deploy via WSP/Powershell.  I am not changing any files directly in SharePoint.  When I mentioned changing the elements.xml and schema.xml files above, I am talking about in Visual
    Studio prior to packaging everything in WSP and redeploying.  I will re-word my previous post to better emphasize my questions:
    Isn't changing the elements.xml via Visual Studio and deploying the same as changing it directly? I have tried numerous times to change a content type elements.xml
    file in Visual Studio, Deactivate/Retract/Remove/Install/Deploy/Activate the new version via WSP,
    and then perform a content type update(true) in the feature activated
    to push the changes to all child content types... and it doesn't change the lists version of the content type.  This is why I thought that guidance of "don't change the definition file" applied to elements.xml altogether after deploying. 
    Either way, my code approach for getting these fields updated is working, so I can probably just proceed with that approach.
    This is where it gets very strange.  I see everyone indicate that a schema.xmlchange does not affect existing lists that were made from a list definition
    when updating the package in Visual Studio, Deactivating/Retracting/Removing/Installing/Deploying/Activating the new version via WSP.  I am 100% seeing the opposite of this.  When I update the schema.xml file
    in Visual Studio and then deploy via WSP/Powershell, my views (in existing lists) change to match the new schema.xml as soon as I deploy the changes.  I don't know if this is working differently in 2013 than it did before.
    Hopefully this better indicates the situation.  My apologies!
    Thanks again!
    Hi,
    Do you have a solution for case 2)?
    I just confirmed for case 2), you are right. This happened for both SP2010 and SP2013.
    I've tried to add more column in the schema.xml, then re-deploy solution. After that, all existed lists are effected the new schema.xml. However, by the work as design of SharePoint OOTB, it could not be effected because after creating a list, all schema.xml
    is copied to database and it will work on the separate space. It's so strange.
    if you have a solution to fix or found out something else, please share it.
    Thanks
    /hai
    Visit my blog: My Blog | Visit my forum:
    SharePoint Community for Vietnamese |
    Bamboo Solution Corporation

  • Workaround to using "Person or Group" field in a "Calculated" column formula?

    Apparently, SharePoint does not allow you to insert a "Person or Group" column into a "Calculated" field's formula.
    Is there a workaround to adding a "Person or Group" column into a "Calculated" field's formula?
    -Maybe a way of coverting the data from the Person or Group column into a text field, and referencing that text field in the formula?
    Microsoft mentions only Columns of the following data types can be referenced in a formula: single line of text, number, currency, date and time, choice, yes/no, and calculated.

    Hi AskMicrosoft,
    Have you tried to use a workflow?
    1 Create a new text column in the list.
    2 Create a workflow and use
    Update item in this list Action > Add the new text column to the value in people and group column.
    Then you can add the text column in calculate formula.
    Hope it helps.
    Best regards. Emir

  • Person or Group field not storing data that is entered.

    Hi guys,
    I'm having a bit of a frustrating time trying to import the records of 900+ staff members into a list and then create a view that shows only the currently signed in user.
    Now I've got my list all sorted out lovely and the way we have it set up is that the users payroll ID is their unique ID for everything, their log in for AD and SharePoint. This gives us a nice advantage and I'd hoped that with a column in our list with
    the users Payroll ID we could use that to match the username of the currently logged in user, I was wrong as it will only allow me to use a person or group column.
    MY ISSUE is that when trying to copy the column containing the Payroll ID, which is also the users username in SharePoint, in Datasheet view into the person/group column I get the following error for most of records (some of them do work and contain the
    information correctly).
    "The text entered for Username isn't an item from the list. Select an item from the list, or enter text that matches one of the listed items."
    After getting frustrated at that I then edited our Info Path form for users to modify their details with and added a field that linked to the column. When in the form this field accepts the payroll ID and outputs the users SharePoint name (not username)
    as expected but when saving the form it doesn't update the column.
    Any suggestions?

    I suspect the reason you can't insert the users automatically is that the users haven't visited or been mentioned on that site previously. SharePoint caches user data (in the hidden user information list) on each site collection which means that if you were
    to copy and paste a user who hasn't been on the site before it'll fail to find them in the cache. In normal circumstances using the people picker it'd identify the cache is empty and check for the user in AD but it may be failing for you in datasheet view.
    To confirm find one of the users that failed as part of the C&P, add an entry for them manually, delete it and then re-try the copy and paste.

  • User Profile Sync - Fields That Appear Under the "Person or Group" Column

    As I go to add a new column to a list on SharePoint 2010, I notice some fields under the drop down labeled "Show field". Inside that drop down there is a "Test" and a couple others I see in there that I don't notice in the User Profile
    Sync. Forgive me, I've inherited this SharePoint config. Where should I be looking to find these phantom fields or how can I erase them?
    Thank you!

    Those fields are part of the schema for the "Person or Group" field type and are not related to the UPS.
    Trevor Seward, MCC
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • What's the control on List Forms for Person or Group?

    Hi,
    Anyone know what is the control that binds to Person or Group field in SharePoint 2013? It does not have the Check Names and Browse buttons beside the text box like PeopleEditor does, and it displays a list of possible users for selection as you type in
    the text box.
    I would like to use this control in a SharePoint project in Visual Studio 2013.
    Thank you.

    http://prasadpathak.wordpress.com/2013/10/10/setting-show-field-for-person-or-group-type-column-using-powershell/
    http://www.c-sharpcorner.com/UploadFile/54db21/create-peoplegroup-field-in-sharepoint-2010-programmatically/
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/e5a50ad0-bd83-4a37-bed7-fa9a2d475bfe/how-to-get-a-value-from-peoplegroup-field-and-use-it-in-visual-studio-workflow?forum=sharepointcustomizationlegacy
    The below links is same as your case. Please check it
    http://mazdev.blogspot.in/2014/05/get-value-of-persongroup-list-item.html

  • Person or Group MetaData Field not saving

    I have a document library with a custom content type
    This DL has 2 Person or Group Meta Data Fields
    I created a simple workflow so that the people on these 2 fields get notified when an item is created or modified. 
    However; for some reason, when I create a new document set of this content type 
    The person fields dont save any information
    I can edit and reenter the info and it saves it but no workflow emails go out. 
    I am using Sharepoint Online on a E3 plan. 
    Please help
    Thanks
    Tanya

    Hi,
    I have done a test on my SharePoint online, I can’t reprocess your issue.
    I added a custom content type in a document library which has 2 Person or Group Fields.
    Then opened the document library with SharePoint Designer 2013, created an approval workflow as the following screenshot:
    I  selected that starting the workflow when an item is created or modified.
    When I created or modified an item in the document library, the people on these 2 fields got emails 
    automatically.
    For your issue, make sure the  people have correct email addresses.
    Please follow my method and test again.
    Hope it helpful.
    Best Regards,
    Lisa Chen

Maybe you are looking for