Sending values to an unopened form - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Sending values to an unopened form

Last post 04-16-2007 09:03 AM by troy0118. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 04-10-2007 01:39 PM

    Sending values to an unopened form

    My situation:
    1. During filling out a form, a drop-down list box will populate some data.
    2. Select a specific record from the drop-down list box.
    So far, it's esay.

    3. After selecting the record, click on a button and send the value to another form and open it in order to run a query.
    This is tough.

    The point is how I can send the value to the query field of the will be opened form.

    I searched the forum, but don't see an appropriate answer.
    I wonder if it's possible.
  • 04-10-2007 04:15 PM In reply to

    Re: Sending values to an unopened form

    Hi Troy0118. There are several HowTos on this. Check out the one by Jim Cantwell called passing parameters to forms. I think Greg has also created a parameter passing example too, but don't know if it's on the site. Search for passing arguments or passing parameters. Good luck!
    Patrick Halstead
    Project Manager at Qdabra
  • 04-11-2007 10:56 AM In reply to

    Re: Sending values to an unopened form

    The article you suggested is similar to the NewFromSolutionWithData, doesn't it?
    It says using an xml file to test it. However, my question is a parameter in an opened form(no save) needed to be passed to an unopened form in a query field.
    Have been struggling on this issue. and need this to be done by next Friday.
    Please advice. Thanks very much.
  • 04-11-2007 12:56 PM In reply to

    Re: Sending values to an unopened form

    Hi Troy,

    I need to understand your scenario. Are you trying to change a value in an unopened form without opening it? Are you trying to open a form and prepopulate values based on this value? Please clarify. My understanding based on your first post was the latter.

    You can use NewFromSolutionWithData to do that but it will require that the form you are opening has a field that can harbor the query value. If you can add a field for that, it's easiest solution and it probably doesn't require code, just an Open rule to automatically query the secondary data source using the field that you load with the special query value. Another solution is to just communicate to the newly opened form using code and send it the info but that is slightly more work. A third option is to save the form you are working on and use the technique Jim writes about to load it into another solution as an input parameter. If you need some help by Friday, you could buy a block of time and we could help you. Let me know.
    Patrick Halstead
    Project Manager at Qdabra
  • 04-11-2007 08:11 PM In reply to

    Re: Sending values to an unopened form

    Thanks for your response, Patrick.

    I have specified my situation by providing an image:


    Can I use NewFromSolutionWithData method?
    I don't get it because the example of the method requires a saved xml file. In my case, the form will not be saved. While working on it, I will need to open another form for modification.

    Thanks so much.
  • 04-16-2007 09:03 AM In reply to

    Re: Sending values to an unopened form

    Hi Patrick,

    Could you please point me out what I should do?

    As you mentioned, I can use an Open rule to executive this.
    Please take a look on the diagram I provided, and advise me.
    Thanks a bunch.

    Troy

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