Fetch LogedIn user from Active Directory on Browser Enabled InfoPath forms - InfoPath Dev
in

InfoPath Dev

Fetch LogedIn user from Active Directory on Browser Enabled InfoPath forms

Last post 11-10-2013 01:24 PM by wilkies0106aw. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 11-08-2013 12:13 AM

    Fetch LogedIn user from Active Directory on Browser Enabled InfoPath forms

     Hello Experts,

                       Is there a way to fetch User profile info on InfoPath web forms?? I know that using GetUserProfileByName Webservice, we can fetch loggedin user details on the Client Based Infopath forms. I want the same feature on Web forms as well. I tried to follow the steps present in http://blogs.microsoft.co.il/blogs/itaysk/archive/2007/04/05/InfoPath-_2D00_-Get-the-current-user-without-writing-code.aspx . I want exact same functionality on Infopath webforms. I am using Infopath 2010 with Sharepoint 2010 (with form services enabled). I am getting the below error message when I try to fetch logged In user data using Webforms

     

    Complete Error Message: 

    A query to retrieve form data cannot be completed because this action would violate cross-domain restrictions.

    If this form template is published to a SharePoint document library, cross-domain access for user form templates must be enabled under InfoPath Forms Services in SharePoint Central Administration, and the data connection settings must be stored in a UDC file in a data connection library in the same site collection.

    If this is an administrator-approved form template, the security level of the form must be set to full trust, or the data connection settings must be stored in a UDC file by using the Manage data connection files option under InfoPath Forms Services in SharePoint Central Administration.


    An entry has been added to the Windows event log of the server.
    Log ID:6932


    Correlation ID:793cb458-afbc-4ac4-b278-cade6752c4ce

     Once I click on OK, then form will open but without fetching loggedIn user information.I have gone through few sites which says that I have to use dataconnection library to fix this problem. I tried it but no use. Could you please provide step by step procedure on how to fix this problem???

    Please help me with it.

     

    Regards

    Basha

     

    Iqbal Basha
  • 11-08-2013 12:28 AM In reply to

    Re: Fetch LogedIn user from Active Directory on Browser Enabled InfoPath forms

     If I remember this correctly the form template has to be put in full Trust on SharePoint in the settings and the web service had to be cross domain.

    Adam Harding
    Wales
    UK
  • 11-10-2013 01:24 PM In reply to

    Re: Fetch LogedIn user from Active Directory on Browser Enabled InfoPath forms

     Is this the only data connection you have on your form? What about to SP lists, button code etc./

    The getuserprofile works fine in InfoPath forms which are in a InfoPath Web Part page on sharepoint.  Also for easy of use, can't use the service of the domain where the form is physically placed?

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