Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Highlighted
Developer
Posts: 777
Registered: ‎07-21-2012
My Device: 9810
My Carrier: 0

Filter example in blackberry 10

Hello

 

can you please tell me any filter listfield example in blackberry cascade.?

 

 

Thanks

Developer
Posts: 777
Registered: ‎07-21-2012
My Device: 9810
My Carrier: 0

Re: Filter example in blackberry 10

i already make simple application using model .

But i need to filter that list in blackberry 10

Developer
Posts: 188
Registered: ‎07-19-2012
My Device: Z10 LE
My Carrier: Three

Re: Filter example in blackberry 10

Please don't duplicate topics - If anybody knows the answer they'll answer in their own time. Posting the same question repeatedly won't get you an answer any quicker.



Did this post help you? If so, please make sure to "like" it!
Developer
Posts: 43
Registered: ‎12-16-2011
My Device: Torch 9800 & Playbook
My Carrier: Three

Re: Filter example in blackberry 10

Hi,

 

In my case I have a listview which can be filtered by three different types as well as having a text filter.

 

In order to implement this I created a custom C++ class which manages the objects currently in the datamodel.

 

My data items, once instantiated are children of my custom class and the custom class maintains an array which indicates which items should be displayed at any one time.  When the filter criteria changes my custom class adds/removes the data items from the datamodel as requied.

 

I'm sorry I havn't the time to knock up an example.  But hopefully this will give you an idea on how to tackle your issue.

regards

Daniel - Neurocode
If my posts help, please click the Like button.

gymChronicles - helping you to keep motivated
Developer
Posts: 777
Registered: ‎07-21-2012
My Device: 9810
My Carrier: 0

Re: Filter example in blackberry 10

Ok thanks

 

whenever you free please provide me some example.

Thanks

 

Developer
Posts: 19,633
Registered: ‎07-14-2008
My Device: Not Specified

Re: Filter example in blackberry 10

[ Edited ]

Any example would be specific to a situation and would probably not apply in your case.  Better would be for you to try what has been suggested.

 

But there is more documentation to help you.

 

Have you been through this tutorial and seen how a DataModel supplies items to a ListView:

https://developer.blackberry.com/cascades/documentation/ui/lists/lists_set_up_project.html

 

Once you have been through this, then the following KB article will help I suspect:

http://supportforums.blackberry.com/t5/Cascades-Development-Knowledge/Using-a-Custom-DataModel-to-Fi...

 

I also found the following interesting reading:

http://www.kdab.com/one-datamodel-to-filter-them-all/

 

Using the last two references you should be able to figure out what you need to know.

 

Edit:

Can you please not post the same question twice, you were asked not to do this often enough on the Java forum to know better.

More information in your other Thread:

http://supportforums.blackberry.com/t5/Cascades-Development/How-to-create-fitter-list-in-blackberry-...