Hi Jerome,

This might be a primitive solution and I haven't tried it, but maybe you could have several WOAnyFields in the component and hide all but one in conditionals until the + button is clicked. The + button in each one would expose the next WOAnyField below it. You'd have a limited number (say 5) of fields on the page, but it might work out for 95% of the cases. There's probably a nice Ajaxy way to do this with the buttons and exposed parts of the page.

Another way to go might be to have a concatenated field in your database (a derived attribute in EOF) of all your possible fields and use one "Simple Search" field that accesses all the fields. It doesn't provide as specific a filtered set as your solution, but again, it might satisfy the majority of your users.

David

On 19-Dec-08, at 11:20 AM, Jerome Chan wrote:

I want to create a dynamic search list like iTunes Smart List.

Is it possible to use several WOAnyFields to change what is displayed for a WODisplayGroup?

+ - [name] [contains] xxx
+ - [name [ends] zzz
+ - [age] [greater] 30

Where clicking on the + button will add a new search field and clicking on the - button will delete the selected search field.

Or do I have to create my own component?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/programmingosx %40mac.com

This email sent to programming...@mac.com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to