<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SQL Database Integration</title><link>https://www.infopathdev.com:443/forums/47.aspx</link><description>For questions concerning issues in the integration of SQL and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Populate Text Field based on dropdown selection value</title><link>https://www.infopathdev.com:443/forums/thread/120819.aspx</link><pubDate>Fri, 12 Apr 2019 16:05:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120819</guid><dc:creator>Anubhav</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120819.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=120819</wfw:commentRss><description>Thanks Hilary.

You know what I was looking for some kind of mechanism t print values and able to debug a sort of. This will really help me with it.

Anubhav</description></item><item><title>Re: Populate Text Field based on dropdown selection value</title><link>https://www.infopathdev.com:443/forums/thread/120818.aspx</link><pubDate>Fri, 12 Apr 2019 15:23:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120818</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120818.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=120818</wfw:commentRss><description>Hey, great job figuring it out - the learning curve at the beginning can seem a bit steep. One thing that helped me a lot was just dragging my various data sources onto the form, making sure all the data was displayed in text controls so I could see the actual values of stuff - especially when working with secondary data sources. It is easy to delete stuff when you are done designing, and actually seeing the data helped me a lot - Oh, and I would add buttons to execute queries, and put the query fields on the form as well, so I could see what worked &amp;amp; what didn&amp;#39;t.</description></item><item><title>Re: Populate Text Field based on dropdown selection value</title><link>https://www.infopathdev.com:443/forums/thread/120816.aspx</link><pubDate>Fri, 12 Apr 2019 15:05:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120816</guid><dc:creator>Anubhav</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120816.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=120816</wfw:commentRss><description>Hi Hilary,

I stopped with my development of Blank and went ahead with Database Form. I was able to achieve my objectives by performing following actions.

1) Populate the drop down - added a rule on &amp;quot;On load event&amp;quot; and then in that rule i added a second action of setting the value from data field - SUCCESS!!

2) I was comparing with text and not value field so compared and got he result. SUCCESS.

Thanks for the reply. Will post more questions as I proceed.

Regards,
Anubhav</description></item><item><title>Re: Populate Text Field based on dropdown selection value</title><link>https://www.infopathdev.com:443/forums/thread/120814.aspx</link><pubDate>Fri, 12 Apr 2019 14:46:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120814</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120814.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=120814</wfw:commentRss><description>It would help me if I could see a copy of your form (the one where you started from a blank form) - you can attach it under Options in a reply. As to why your blank form doesn&amp;#39;t have query fields in the main data source - those are only there with data bound forms. For a form where you start from blank, there is nothing in the main data source to query - the XML is all just data.</description></item><item><title>Populate Text Field based on dropdown selection value</title><link>https://www.infopathdev.com:443/forums/thread/120810.aspx</link><pubDate>Fri, 12 Apr 2019 03:04:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120810</guid><dc:creator>Anubhav</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120810.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=120810</wfw:commentRss><description>Hi Experts!!

I have just started with InfoPath Development. So I was designing forms based on SQL DB as the backend.

So there are just 2 fields in this form: 1 Drop down (which I want to autopopulate on loading of Form) &amp;amp; Text field ( which I want to fill based on the selection of dropdown value).

1) I have not designed this as Database Form as I was not able to populate the dropdown ( Basically i could not find the checkbox of &amp;quot;Autopopulate on load&amp;quot; in wizard)

2) Then I have designed this as a Blank form in which I was able to auto populate the drop down values.

Now comes to filling of Text field, so I have adopted this approach:

a) On this drop down created a Rule 1 to query the SQL Table.

b) Then created Rule 2 - &amp;quot;Set the field value&amp;quot; in Field as &amp;quot;datafield&amp;quot; of Table (text field) and Value as same data field (of SECONDARY CONNECTION) with filter ( dropdown value as equal to dropdown-like field in &amp;quot;datafield&amp;quot;).

Issue: Now my dropdown is filled only first time and is NULL on change of dropdown value. So I am not able to ppulate my Text field.

Also i have a curiosity that why these Blank Forms does not have queryfields and only DataFields?

Any help will be much appreciated.</description></item></channel></rss>