To populate from database - InfoPath Dev Sign in | Join | Help in Data Connections InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » Data Connections » To populate from database To populate from database Last post 09-09-2008 11:04 PM by Jollybaba. 7 replies. Page 1 of 1 (8 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 09-08-2008 09:21 PM Jollybaba Joined on 09-08-2008 Posts 10 To populate from database Reply Contact Say these a table with few rows and two columns, like name and email id, which is my secondary data source. The entries of a drop-down list box is the name column. I want to populate a text box with the corresponding emaid id(from the secondary data source) when a certain value is chosen in drop-down box. R S Kiran 09-08-2008 11:02 PM In reply to Clay Fox Joined on 06-27-2006 USA Posts 1,935 Re: To populate from database Mark as Not AnswerMark as Answer... Reply Contact Put a rule on the dropdown. Add a set field action. Use the email with a filter of name = name selected from the dropdown. Clay Fox / Microsoft InfoPath MVP 09-08-2008 11:13 PM In reply to Jollybaba Joined on 09-08-2008 Posts 10 Re: To populate from database Mark as Not AnswerMark as Answer... Reply Contact Thanks a lot for the quick response. It worked. R S Kiran 09-08-2008 11:23 PM In reply to Jollybaba Joined on 09-08-2008 Posts 10 Re: To populate from database Mark as Not AnswerMark as Answer... Reply Contact One more problem, can i fire a query to sql and get the result into a text box. For instance when i select 'Open' in the status column can i get number of 'Open's in status column and get the value into a text box? R S Kiran 09-09-2008 12:47 AM In reply to swathip Joined on 10-30-2007 India Posts 487 Re: To populate from database Mark as Not AnswerMark as Answer... Reply Contact Hi Take a hidden field and increment that field whenever you select 'Open'. Put that value in a text box. Swathipwww.ggktech.com 09-09-2008 01:08 AM In reply to Jollybaba Joined on 09-08-2008 Posts 10 Re: To populate from database Mark as Not AnswerMark as Answer... Reply Contact Hi Swathip, Very glad for the active reply. I think i was not quite clear in my previous reply. I want to know the number of 'Open's in the status column. That number should come in the text box. R S Kiran 09-09-2008 10:01 PM In reply to swathip Joined on 10-30-2007 India Posts 487 Re: To populate from database Mark as Not AnswerMark as Answer... Reply Contact Hi Use the following expression in Text box as default value. count(field1[. = "Open"]) Here field1 -> status Column Hope this helps to you. Swathipwww.ggktech.com 09-09-2008 11:04 PM In reply to Jollybaba Joined on 09-08-2008 Posts 10 Re: To populate from database Mark as Not AnswerMark as Answer... Reply Contact Hello, Thank you very much. It got how to use it, and it works fine. R S Kiran Page 1 of 1 (8 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
Say these a table with few rows and two columns, like name and email id, which is my secondary data source. The entries of a drop-down list box is the name column. I want to populate a text box with the corresponding emaid id(from the secondary data source) when a certain value is chosen in drop-down box.
Put a rule on the dropdown.
Add a set field action.
Use the email with a filter of name = name selected from the dropdown.
One more problem, can i fire a query to sql and get the result into a text box. For instance when i select 'Open' in the status column can i get number of 'Open's in status column and get the value into a text box?
Hi
Take a hidden field and increment that field whenever you select 'Open'. Put that value in a text box.
Hi Swathip,
Very glad for the active reply. I think i was not quite clear in my previous reply. I want to know the number of 'Open's in the status column. That number should come in the text box.
Use the following expression in Text box as default value.
count(field1[. = "Open"])
Here field1 -> status Column
Hope this helps to you.
Hello,
Thank you very much. It got how to use it, and it works fine.