How to Pass Parameter value to the webservice on loading the form? - InfoPath Dev
in

InfoPath Dev

How to Pass Parameter value to the webservice on loading the form?

Last post 04-04-2009 01:43 AM by Patrick Halstead. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-03-2009 05:59 AM

    How to Pass Parameter value to the webservice on loading the form?

    Hi,

     I am creating infopath form which shows information about the logged in person.

    I am using web service Dataconnection to get the person details from DB. GetPersonDetail() method will accept PersonId as parameter.

    I need to pass this parameter when user open the form. parameter value should be dynamic. it has to take the currently logged on user  and show the information.

    how i can pass the parameter value to the web service method on the load of the form?

     

    Thanks,

     

  • 04-04-2009 01:43 AM In reply to

    Re: How to Pass Parameter value to the webservice on loading the form?

    You can set the parameter to point to a field in your form when you create the data connection. Just make sure the form has data set correctly before it queries. You could also use an Open Rule to set the PersonId and then query the Web service (in other words, don't use the default query on open, but use the Tools->Form Options->Open Rules instead). Hope this helps!

    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.