Hello!
Searched the forum and could not find a tutorial for auto-complete input. Any hints, it will be very helpful.
Thanks.
Auto-complete
4 posts
• Page 1 of 1
Auto-completeHello!
Searched the forum and could not find a tutorial for auto-complete input. Any hints, it will be very helpful. Thanks.
It works the same way a select widget works. There are two types of autocomplete widgets.
1. autocomplete This is just a text field that tries to autocomplete what you are typing based on a valuelist. It doesn't provide a drop-down list of options. 2. yui_autocomplete This is the YUI autocomplete widget. It provides a drop-down list of options for autocomplete. e.g.
or
This page may also be helpful http://xataface.com/wiki/widget%3Atype -Steve
Auto-completeThanks. Steve.
Thanks for your link. On the data input, the input field is INT and the autocomplete field lookup is based on VAR field. I was able to get auto-complete VAR value into INT field. But I need INT value to be submitted to the Database. How can I do it. Here is what I have: fields.ini contains: [pol] widget:type = yui_autocomplete vocabulary = pols valuelists.ini contains: [pols] __sql__ = "SELECT p_id, port_name FROM ports ORDER BY port_name" I need p_id value to be into filed pol. Now I can only put port_name value there. Any suggestion? -Richard
4 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: No registered users and 33 guests |