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

Java Development

Reply
Contributor
Posts: 12
Registered: ‎05-17-2013
My Device: Simulator

About ListField in Blackberry

Plz give the code or function how to clear the ListField and update the ListField . Suppose i want to display some multiple text( Project Name, Project Manager )extracted from JSON object , in a ListField. I am able to display this strings in the ListField but one more feature i need to add ie.. above the ListField there should be a ButtonField and when the user clicks on the ButtonField the ListField should display the string in sorted manner base on Project Name. So i need to clear the ListField.

Contributor
Posts: 13
Registered: ‎04-18-2013
My Device: Simulator

Re: About ListField in Blackberry

Implement ListFieldCallback in your screen, you can then handle the drawing of your rows however you want in drawListRow.

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

Re: About ListField in Blackberry

In this sort of circumstance, I would recommend that you sort the data you are using in the ListField, cfeate a new ListField based on the sorted data, and then delete the old ListField and add your new one.