Published form in SharePoint 2010 return blank value - InfoPath Dev
in

InfoPath Dev

Published form in SharePoint 2010 return blank value

Last post 10-03-2011 05:53 PM by pyrocam. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-09-2011 02:50 AM

    Published form in SharePoint 2010 return blank value

     

    Hi, i followed Itaysk’s intructions to use the GetUserProfileByName and managed to retrieved the logged in user’s first and last name ok. However it only works in InfoPath 2010 with Preview. After i’ve published it in SharePoint 2010 and test the form, the fields are blank. My colleague here has a similar form with the same fields – First and Last name. it works fine for his form in SharePoint2010. This is what we both have for the First Name field “xdXDocument:GetDOM(“GetUserProfileByName”)/dfs:myFields/dfs:dataFields/tns:GetUserProfileByNameResponse/tns:GetUserProfileByNameResult/tns:PropertyData[tns:Name = "FirstName"]/tns:Values/tns:ValueData/tns:Value”. Just can’t understand why his published form works in SharePoint 2010 and mine doesn’t. We both publish to the same server – site.
    Your comments would be much appreciated.

  • 10-03-2011 05:53 PM In reply to

    Re: Published form in SharePoint 2010 return blank value

    Check if the server is throwing a 5566 error, in which case you may find the permissions (either the site or of the user profile service ) are not allowing it.

    I was having a similar problem then I changed my datasource to be a subsite URL, so instead of 

    http://intranet/_vti_bin/UserProfileService.asmx?WSDL

    it was

    http://intranet/IT/_vti_bin/UserProfileService.asmx?WSDL

     also

    http://www.infopathdev.com/forums/t/7676.aspx

    last resort; under central admin , service applications, add yourself to administrators and permissions for the User Profile Service Application and try again

     

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