Query Fields No Longer Prompted For? - InfoPath Dev
in

InfoPath Dev

Query Fields No Longer Prompted For?

Last post 07-27-2010 10:07 AM by blackhawk. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 07-26-2010 11:10 PM

    Query Fields No Longer Prompted For?

    This might be something for the 2010 forum, but wasn't sure.

    Normally when you access a web service via a secondary data source, you get two prompts.   One prompt is for you to enter the sample data (if an unknown structure is returned) and another prompt is for the default values to send.

    It seems in InfoPath 2010, you only get one prompt (the one for the sample data set).

    The problem comes in that when you tell IP to query the data source when the form opens you cannot set these values for the input parameters to the web service method (unless you go into code or turn off automatic load of the secondary data source).  Rules on form load seem to fire AFTER the datasource is queried, so you can't even set it in Form Load rules.

    Am I missing something here?   Is there a way around this?    

    It seems like a step backward for MS to do this because the whole point of querying a data source that has parameters is to be able to set them before calling it.   Making this a more complex and convoluted method is counterproductive to what InfoPath is supposed to stand for.  

  • 07-27-2010 09:56 AM In reply to

    Re: Query Fields No Longer Prompted For?

    What I've done is set the data source to NOT query on load, then add Form Load rules to 1) set the query field values and 2) run the web service query. Not sure why the change was made, though, perhaps they were thinking that we always use form values for those query params?

    Hilary Stoupa

  • 07-27-2010 10:07 AM In reply to

    Re: Query Fields No Longer Prompted For?

    This (and some other so-called "new features") really bugs me about IP 2010.  

    While I do realize that you can create the rules like you mentioned, it is stupid because what is the point of the automatic load of a data source if you can't specify what the parameters are when it does it?

    Even if they thought, as you say, the params come from the form values, that still doesn't make sense because you can't specify them before the data source is queried, because rules fire AFTER the query.

    Sorry for the rant here, but sometimes I wonder who is really leading this group.   Anyone from MS want to comment on this????

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