Skip to main content



      Home
Home » Archived » Sapphire » Filtering items int Table/List property editor?
Filtering items int Table/List property editor? [message #1451797] Fri, 24 October 2014 05:47 Go to next message
Eclipse UserFriend
Hello
Maybe I missed something, but can't find how to filter out some elements from Table/List property editor.

Sample of what I want to do:
			
<property-editor>
                <property>Cars</property>
                <child-property>Id</child-property>
                <child-property>Producer<child-property>
                <child-property>Type</child-property>
                <child-property>Mass</child-property>
</property-editor>


And I want to show e.g. only cars with Type == "Truck" in a table
Re: Filtering items int Table/List property editor? [message #1452071 is a reply to message #1451797] Fri, 24 October 2014 14:58 Go to previous messageGo to next message
Eclipse UserFriend
Are you looking for a way for the user to type in filter/search string or are you looking for a way to show a pre-filtered table on a form?
Re: Filtering items int Table/List property editor? [message #1453718 is a reply to message #1452071] Mon, 27 October 2014 07:19 Go to previous messageGo to next message
Eclipse UserFriend
I'm wondering how to show pre-filtered table on a form.
Re: Filtering items int Table/List property editor? [message #1460603 is a reply to message #1453718] Mon, 03 November 2014 13:53 Go to previous message
Eclipse UserFriend
My apologies for the delayed response. I forgot to follow up.

To show a pre-filtered list on a form, you need to create a filtered list property in the model. Define the filtered list property just like the original property, then add @CustomXmlListBinding tag with a reference to a class you create that extends StandardXmlListBindingImpl. To achieve filtering, you will want to override the readUnderlyingList() method and filter the list returned by the base implementation.
Previous Topic:Sapphire 0.7 memory problem!
Next Topic:Announcing Sapphire 8.0.2 Release
Goto Forum:
  


Current Time: Mon May 05 14:49:44 EDT 2025

Powered by FUDForum. Page generated in 0.03970 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top