Victor Fernandez de Alba wrote:
> Hi,
> 
>  
> 
> I’ve been trying to develop an AT widget that would search the PAS for 
> all the available users in the site. It would be great if that widget 
> will have the autocomplete feature. The idea came from a widget I liked 
> very much that the dojo library have and I wanted to create an AT widget 
> that emule its behavior.
> 
>  
> 
> It would be of a great use for those who have a large user databases 
> such as LDAP based ones, as is my case.
> 
>  
> 
> I borrowed the code from the “sharing” tab which already use KSS to 
> search the PAS, and I managed to integrate it in a widget. Then, created 
> a new KSS file and register it to the portal_kss with a set of modified 
> definitions from the one uses the “sharing” tab. It works perfectly. Now 
> I’m stuck on adding the autocomplete behavior. I’ve tried the KSS events 
> keypress, keyup, keydown with no effect… However, I’ve tried with 
> another type of event, and worked, like timeout or change… Any ideas?

This isn't an Archetypes widget (yet) and it doesn't yet use AJAX in the 
released version, but the UberSelectionWidget aims to give you a 
search-based interface to this kind of thing. We already have a (Zope 3 
style) vocabulary (which you can use in Archetypes as of Plone 3, just 
give its name in the vocabulary_factory option) that enables you to find 
users by searching.

If you look at borg.project or oi.plum (both in the collective) you'll 
see this in action for selecting users that are members of a project.

Martin

-- 
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book

_______________________________________________
Kss-devel mailing list
Kss-devel@codespeak.net
http://codespeak.net/mailman/listinfo/kss-devel

Reply via email to