how to create a wild card parameterized query for a dropdown control? - InfoPath Dev Sign in | Join | Help in General 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 » General » how to create a wild card parameterized query for a dropdown control? how to create a wild card parameterized query for a dropdown control? Last post 01-24-2013 01:40 PM by ryangibbonshr. 6 replies. Page 1 of 1 (7 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 02-02-2012 12:39 AM william2 Joined on 02-02-2012 Posts 3 how to create a wild card parameterized query for a dropdown control? Reply Contact Hello all, I have a a dropdown list control bound to the main data source in a SQL server. I would like to make the wild card query to the table by Supplier Name say Abc* and then pick only one record from the result set. In addition, the other fields in the form will be updated based on the record selected at the previous step. How can I do this? I am new to the Infopath. Thanks in advance. Filed under: SQL, VSTO 2005, Repeating table, xpath, filter, dropdown secondary data source bind, AD, SQL Database Access, repeating table infopath, 2007, dropdown, data connection, Controls, dataconnection, retrieve data, dropdown list, dataset, data acess, infopah 2007, data connections, Secondary data connections, VB.NET, infopath2007, repeating tables, VSTA, SQL data source, infopath filler query strings, data source, drop-down list, repeating table infopath copy data exporting data 02-02-2012 08:39 AM In reply to jaxkookie Joined on 05-02-2007 jacksonville FL Posts 187 Re: how to create a wild card parameterized query for a dropdown control? Mark as Not AnswerMark as Answer... Reply Contact If you already in SQL Server why not write a stored procedure to manage your query. Then you can return partial matches, and return values for all the other fields you want populated. If this is not an option You may need 2 fields to make this work, one for the search (wild card) and one for the results. the results will filter results based on your value in the search, but instead of equals you will use contains. Then apply rules to populate other form fields Kind regards,Larry 02-02-2012 08:45 AM In reply to Test123 Joined on 01-11-2012 Posts 35 Re: how to create a wild card parameterized query for a dropdown control? Mark as Not AnswerMark as Answer... Reply Contact I have a similar question, one of my drop down field look up from a sharepoint custom list column, i have 500 values in that column, so i want to enter search in the dropdown field, how can i do that? thanks in advance. 02-09-2012 12:47 AM In reply to william2 Joined on 02-02-2012 Posts 3 Re: how to create a wild card parameterized query for a dropdown control? Mark as Not AnswerMark as Answer... Reply Contact Thanks for your advice. I have created the stored procedure. Then how can I populate the dropdown list with the returned dataset? 02-09-2012 06:25 AM In reply to jaxkookie Joined on 05-02-2007 jacksonville FL Posts 187 Re: how to create a wild card parameterized query for a dropdown control? Mark as Not AnswerMark as Answer... Reply Contact funny you should ask. I struggled with this at first but was able to figure it out using this post. http://www.bizsupportonline.net/infopath2007/programmatically-fill-populate-drop-down-list-box-infopath-2007.htm This is a good writter for InfoPath solutions. Start with this and if you still cant get it I will post my updated code from the post that my help you. Kind regards,Larry 02-09-2012 11:16 PM In reply to william2 Joined on 02-02-2012 Posts 3 Re: how to create a wild card parameterized query for a dropdown control? Mark as Not AnswerMark as Answer... Reply Contact yes. I have read this link before. Now the problem becoms how I can invoke the stored procedure and save the returned result into an xml file. Then the rest part is set. By the way, I am wondering if there is a simpler way to set up a parameteriized query directly for the dropdown list control.Thanks in advance for you advice! --- William 01-24-2013 01:40 PM In reply to ryangibbonshr Joined on 09-18-2010 Posts 13 Re: how to create a wild card parameterized query for a dropdown control? Search_View.png Mark as Not AnswerMark as Answer... Reply Contact @JAxkooki-- I'm looking to do something similar. I have an employee status change form I created where you can search for the employee you're looking for through search fields (screen shot below). Any recommendations you can make on building in the ability to throw a wildcard in would be helpful (i.e., if you're searching by Manager Last Name = Gregg, typing in Gre* and getting anyone in the table whose last name starts with Gre). Thanks! - Ryan Gibbons Page 1 of 1 (7 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
Hello all,
I have a a dropdown list control bound to the main data source in a SQL server. I would like to make the wild card query to the table by Supplier Name say Abc* and then pick only one record from the result set. In addition, the other fields in the form will be updated based on the record selected at the previous step. How can I do this? I am new to the Infopath. Thanks in advance.
If you already in SQL Server why not write a stored procedure to manage your query. Then you can return partial matches, and return values for all the other fields you want populated. If this is not an option You may need 2 fields to make this work, one for the search (wild card) and one for the results. the results will filter results based on your value in the search, but instead of equals you will use contains. Then apply rules to populate other form fields
I have a similar question, one of my drop down field look up from a sharepoint custom list column, i have 500 values in that column, so i want to enter search in the dropdown field, how can i do that? thanks in advance.
Thanks for your advice. I have created the stored procedure. Then how can I populate the dropdown list with the returned dataset?
funny you should ask. I struggled with this at first but was able to figure it out using this post.
http://www.bizsupportonline.net/infopath2007/programmatically-fill-populate-drop-down-list-box-infopath-2007.htm
This is a good writter for InfoPath solutions. Start with this and if you still cant get it I will post my updated code from the post that my help you.
yes. I have read this link before. Now the problem becoms how I can invoke the stored procedure and save the returned result into an xml file. Then the rest part is set. By the way, I am wondering if there is a simpler way to set up a parameteriized query directly for the dropdown list control.Thanks in advance for you advice! --- William