query web service then put result in a field? - InfoPath Dev
in

InfoPath Dev

query web service then put result in a field?

Last post 12-19-2012 08:45 AM by adamoneil. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 12-19-2012 08:10 AM

    query web service then put result in a field?

    I have a combo box that is filled from a REST web service, and it works fine. It's a list of locations--facilities within a company. When I choose one of the locations, I want that location's mailing address to populate in another field (plain text). I have a web service that queries the address based on the selected location name. The service works when I try it interactively in a browser. My question is--how do I get the result of the address service call to go into a specific field? I understand the "change rest URL" action and using the concat function to build the URL, but I don't understand how the returned data from the service is pushed to a particular field. So my rule has 2 actions: change URL and query data. But I don't understand where the queried data goes. Seems there needs to be a third action. I looked at the "set field value" action, but it seems to expect a literal value or value from another field instead of the result of a web service call. Thanks for any help/ideas....
  • 12-19-2012 08:21 AM In reply to

    Re: query web service then put result in a field?

    You are super duper close. You need a third action - your "value from another field" will come from the secondary data connection to your web service - it returns data, right? And you have a data connection to it in order to be able to have the query data action. So, after the query, you set your main data source field to the value of your secondary data source field that has the mailing address info.
    Hilary Stoupa

  • 12-19-2012 08:45 AM In reply to

    Re: query web service then put result in a field?

    thanks so much -- worked just as you said
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.