Contact Selector - Multiple names for SharePoint 2013 people and group field - InfoPath Dev
in

InfoPath Dev

Contact Selector - Multiple names for SharePoint 2013 people and group field

Last post 08-10-2013 10:59 PM by Patrick Halstead. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-08-2013 07:24 AM

    • Big E
    • Top 500 Contributor
      Male
    • Joined on 02-18-2009
    • Alabama
    • Posts 35

    Contact Selector - Multiple names for SharePoint 2013 people and group field

    I am trying to take advantage of the [Me] filter in a SharePoint 2013 library.  I was able to do this in MOSS, but it is not working for 2013.  Here are the steps I used to make this happen.

    1. Added contact selector control to form (enabled multiple values)
    2. Added text field (FormViewer) to hold the value of this statement:  eval(eval(Person, 'concat(pc:AccountId, ";")'), "..")

    This works as expected.  It takes all of the values from the one control and puts it into the one field inside of SharePoint.  Next I did this:

    1. Created a 'Person or Group' column (Viewer), enabled multiple values, used 'Name with Presence'
    2. Setup a SP Designer workflow to set the value of 'Viewer' to 'FormViewer' (this is how I used to do it in MOSS)

    The workflow starts but cancels immediately.  The reason is, 'FormViewer' is a string value and designer will not copy to 'Viewer' which is a people picker field.

     I tried another approach.  I promoted the 'AccountId' field from withing the People Picker control in InfoPath to the library.  It shows both values.  I then setup a worklow just like the one above and replaced 'FormViewer' with 'AccountId'.  This semi works.  It will only populate the last value in 'AccountId' field.  For instance, I have John Smith, Joe Public, and S.C. Rooge, the only name that will show up in 'Viewers' is S.C. Rooge.

     I don't know what else to do.  Any help on this would be greatly appreciated.

    Thanks,
    Eric

  • 08-10-2013 10:59 PM In reply to

    Re: Contact Selector - Multiple names for SharePoint 2013 people and group field

    Don't use Person Picker.

    Create your own repeating table or section with the names in it.

    Then, use the new looping functionality in ShP2013 to walk through the values.

    I haven't tried this but I have heard it will work.

    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.