Solved

Infopath secondary datasources nested

Posted on 2009-04-02
3
614 Views
Last Modified: 2012-05-06
Hi,
I have an infopath form that has two external datasource
I query the first one from a button to populate a dropdownlist
I then want to choose an item from this dropdown list and press a button which will pass the vaule from this combobox to the second datasource.
how do I set the query field for the secondary datasource on change of the dropdown (this throws a state error when I try it), or is there a better way to do it?
Is there an event that fires on the refresh of a datasource?
0
Comment
Question by:sparksolutions
3 Comments
 
LVL 8

Expert Comment

by:MelMc
Comment Utility
I'm not sure what type of control you have as your second field, but if you put value of the first drop down in teh default value (for a text box) or in the filter (for a drop down list) you will be able to get data returned based on field one, I do it all the time. Give me some more details (control types, current rules, etc) if you have more questions and I will try to assist further.
0
 

Author Comment

by:sparksolutions
Comment Utility
I have username and password fields, with a login button button
when I click the login button, it calls a web service which populates a datasource called login, with name value pairs corresponding to questionnaires
This then populates a combobox
when I choose a questionnaire and click Load Questionnaire
it calls a web service and gets the questions for that questionnaire
It then populates the result set into a repeating section and makes the repeating section visible
just rename the file in the archive to xns
0
 
LVL 6

Accepted Solution

by:
ramuar1981 earned 500 total points
Comment Utility
Add a rule to your dropdown with an action that sets the query value. Add a second action that then queries the secondary data source
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Before you can digitally sign infopath forms, you must have a digital certificate. Microsoft Certificate Services will need to be enabled on a Windows Server 2008 to facilitate the creation and verification of the digital certifciates on the web ser…
This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now