Menu

#55 Type Ahead Confusion on Search Form

v1.3 Testing
open
nobody
5
2010-03-26
2010-03-26
BTee
No

Type-ahead issue. I have a Vendor attribute on both the folder and the document for a trac, and it is set to be auto-complete. When I go to search on them, it works fine on the folder. When I try to start typing in the document’s Vendor, it doesn’t do anything, but the folder’s Vendor starts auto-completing. So I think the fact that there are two attributes with the same name is thoroughly confusing the auto-complete code.

[Todd> ] Not surprising. I’m sure the beanForm js is all keyed on beanName, assuming it’s unique (which it is on all pages except search). Should be a simple enough fix to add a prefix, perhaps as an attr into the tag. Might be hard to know when we’ve gotten all of them though.

[Gautam] The search page uses searchForm.tag which is pretty much beanForm wtih the prefixes added for document and folder. I thought this was accounted for when it creates all of the HTML, but it may have been missed when creating the functions or actual auto complete YUI objects. There's also an issue with the cascading drop downs that triggers the wrong ones. I thought I handled that one correctly because UCP uses them, but I'm not sure if they display the same attribute on folders and documents.

Discussion


Log in to post a comment.

Monday.com Logo