Autocomplete

A place for users and developers of the Xataface to discuss and receive support.

Autocomplete

Postby andperry » Fri Feb 27, 2009 12:56 pm

When using an autocomplete field (applies to both the autocomplete and yui_autocomplete widget types), I have noticed that if you type in a value not in the vocabulary list, then when the record has been saved, the field subsequently shows as blank on the Xataface interface (even though it is correct in the underlying table).

I wondered if there is any way round this as I have a situation where 95% of values come from a list of standard choices, but there are the odd one-offs that I don't particularly want to have to add as clutter to the vocabulary list.

Thanks,

Andrew.
andperry
 
Posts: 57
Joined: Wed Feb 18, 2009 9:20 am
Location: Wirral, UK

Postby shannah » Fri Feb 27, 2009 1:56 pm

Thanks. This is a good point. I have corrected this in SVN. If you replace your Dataface/Record.php file with the one at http://weblite.ca/svn/dataface/core/tru ... Record.php it should fix this issue.

For autocomplete and yui_autocomplete widgets this one fix will work fine. If you are using checkbox, select, or advmultiselect I have made changes to the Dataface/FormTool/* files to support values that are not part of the vocabulary. These changes will all be incorporated in to the next release 1.1.6.

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby andperry » Sat Feb 28, 2009 12:43 am

Hi Steve,

Many thanks for the fix. It works OK.

Andrew.
andperry
 
Posts: 57
Joined: Wed Feb 18, 2009 9:20 am
Location: Wirral, UK


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 16 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved