TextBox auto fillin (Google style) - InfoPath Dev

InfoPath Dev

Use our Google Custom Search for best site search results.

TextBox auto fillin (Google style)

Last post 04-19-2011 03:48 PM by Greg Collins. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 02-03-2011 08:10 AM

    TextBox auto fillin (Google style)

    Dear All,

    Sorry if this post isn't in the correct section, I'm new in the forum...

    I'm trying to put in place a functionality in my infopath 2010 form. I have a textbox field called "Name". When I'm starting to writing a name, after 2 or 3 caracters I would like to see propositions like when I'm typing requests on google.

    I have a SQL database containing all the names and I've created a web service which will do a select on my database and returning me a string table (string[]). I've created my web service following this example : http://forums.asp.net/p/1593111/4040172.aspx#4040172

    I've tested the Web Service and there is no problem , if I enter "Smi" in the function input, I'll receive "Smith, John", "Smith Henry", etc...

    The goal now is how to insert this functionality in my InfoPath form ?

    I've created a dataconnection linked with my web service without problem in InfoPath.

    I've seen that I can add a rule in a textbox field with an action "Query for data", I've tried to link this rule with my textbox when he isnt't blank but nothing append.

    Someone have an idea ???

    Thanks in advance for any help.


  • 02-07-2011 10:51 AM In reply to

    Re: TextBox auto fillin (Google style)

    Unfortunately, InfoPath is "sandboxed" meaning that you cannot do a lot of the cool interactive things you can do on a web page. I don't know any control (other than a drowndown or list box) that would give this kind of functionality. Text boxes allow for auto-complete, but this is different: based on what was typed previously.

    You might be able to generate an ActiveX control that does this, but there are distribution issues with ActiveX controls.

  • 02-08-2011 02:27 AM In reply to

    Re: TextBox auto fillin (Google style)

    Dear Greg,

    Thanks for your reply.

    In this case, I'll create a textbox with a search button and fill in a list box with the results...

    If someone else knows a way to do that directly in the textbox, don't hesitate to tell me.

  • 04-19-2011 03:48 PM In reply to

    Re: TextBox auto fillin (Google style)

     That should work well for a scaled down solution. Thanks.

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