network name variable - InfoPath Dev
in

InfoPath Dev

network name variable

Last post 07-22-2005 11:42 PM by SherazAttari. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 07-21-2005 10:46 AM

    • tgo
    • Not Ranked
    • Joined on 06-30-2005
    • Posts 16

    network name variable

    I have an infopath form hosted on a sharepoint site and when users go to download the form they are prompted for their username and password for the network. Since everyone needs to access this form, but only one person can do the final approval is there a way to get the network name into a variable so i can check to make sure its the proper user.
  • 07-21-2005 11:02 AM In reply to

    Hi, I dont think you can actually get the network user(The user name that you have entered in the Sharepoint authentication dialog), its a dialog out of InfoPath, called by sharepoint to authenticate you. This dialog boxis called even before your form is loaded, so its not possible for InfoPath/custom code in InfoPath to get the network name.


    Agni
    InfoPath Dev India
  • 07-21-2005 11:08 AM In reply to

    • tgo
    • Not Ranked
    • Joined on 06-30-2005
    • Posts 16
    thanks for the quick reply.

    I searched the forums while i was waiting for a response and saw how to get the current windows name of the user so I should be able to use that.
  • 07-22-2005 11:42 PM In reply to

    Hi,

    It is possible, but you have to deploy a web service on the sharepoint portal server, and you'll be using that web service to get the username of the user logged in. I dont know any other way of knowing w/o deploying the web service.

    Look at the following article, I believe it'd help you:

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_SP2003_ta/html/sharepoint_integrating_sps_and_infopath.asp

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