Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Sapphire » Filtering items int Table/List property editor?
Filtering items int Table/List property editor? [message #1451797] Fri, 24 October 2014 09:47 Go to next message
Dmitry K is currently offline Dmitry KFriend
Messages: 17
Registered: July 2009
Junior Member
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 18:58 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
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 11:19 Go to previous messageGo to next message
Dmitry K is currently offline Dmitry KFriend
Messages: 17
Registered: July 2009
Junior Member
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 18:53 Go to previous message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
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: Tue Mar 19 04:00:47 GMT 2024

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

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

Back to the top