Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. SharePoint
  4. PickerEnity question

PickerEnity question

Scheduled Pinned Locked Moved SharePoint
beta-testingquestionsharepointtesting
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Aptiva Dave
    wrote on last edited by
    #1

    I'm using the following code to create an SPFieldUserValue object from an entry in a SharePoint People Editor control on an app page:

    Dim requestorCol As New SPFieldUserValue
    For Each entity As PickerEntity In sppeModifyAccount.ResolvedEntities
    requestorCol = New SPFieldUserValue(web, Convert.ToInt32(entity.EntityData("SPUserID")), entity.Key)
    Next

    This is working 99% of the time, where it is able to search our AD and resolve to the person's name typed in the control. That is, until today when we were doing one final bit of beta testing and the form wouldn't submit. After debugging I noticed that the user who's name was put into the control didn't have an ID listed in the entity. My initial thought is that the user we are placing in the form hasn't been to the site yet, and thus doesn't have an SPUserID associated in Sharepoint for her user account. I am having her test that out now, but is there another way around this? We are using Foundation and don't have user's log into the site.

    A 1 Reply Last reply
    0
    • A Aptiva Dave

      I'm using the following code to create an SPFieldUserValue object from an entry in a SharePoint People Editor control on an app page:

      Dim requestorCol As New SPFieldUserValue
      For Each entity As PickerEntity In sppeModifyAccount.ResolvedEntities
      requestorCol = New SPFieldUserValue(web, Convert.ToInt32(entity.EntityData("SPUserID")), entity.Key)
      Next

      This is working 99% of the time, where it is able to search our AD and resolve to the person's name typed in the control. That is, until today when we were doing one final bit of beta testing and the form wouldn't submit. After debugging I noticed that the user who's name was put into the control didn't have an ID listed in the entity. My initial thought is that the user we are placing in the form hasn't been to the site yet, and thus doesn't have an SPUserID associated in Sharepoint for her user account. I am having her test that out now, but is there another way around this? We are using Foundation and don't have user's log into the site.

      A Offline
      A Offline
      Aptiva Dave
      wrote on last edited by
      #2

      Found the issue. This is because the user had never signed into the SharePoint site, and thus was not in the User Information List. We're using Foundation, so I don't have the option to use User Profile Sync. Is there anything out there (preferably free) that I could use to get all my users into the User Information List?

      B 1 Reply Last reply
      0
      • A Aptiva Dave

        Found the issue. This is because the user had never signed into the SharePoint site, and thus was not in the User Information List. We're using Foundation, so I don't have the option to use User Profile Sync. Is there anything out there (preferably free) that I could use to get all my users into the User Information List?

        B Offline
        B Offline
        balaji1010
        wrote on last edited by
        #3

        No might be you need to create a timer job to update all users to List from AD

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups