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
Trusted Contributor
tntn
Posts: 102
Registered: ‎03-01-2010
My Device: 8310

TableField in blackberry application

Hello ;

 

Can any one tell me how can i create a tableField in blackberry application ,i want that the column will sort  the contain of  the column ,for exemple , if the column contain liste of  date (ligne1: 19/04/2010 Ligne2: 18/04/2010 )when i select the title of the column this will be sort it so i will have such this :

 

18/04/2010

19/04/2010

 

THESE Date are organized when i select onther time i will have somthing as :

 

19/04/2010

18/04/2010

 

Thanks in advance

Please use plain text.
Developer
simon_hain
Posts: 16,209
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: TableField in blackberry application

listfield with a simplesortingvector as a base

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Trusted Contributor
tntn
Posts: 102
Registered: ‎03-01-2010
My Device: 8310

Re: TableField in blackberry application

Hello Simone;

 

 

thank you very much for relyng;

 

but for me i must have many columns and each on have a sort to do for exemple colomun date will sort by date ,column name will sort by alphabi a,b,c to organize them .

do you think that using listfield will resolve my prblm or i must have a table or such thing ...????

 

thanks :smileyhappy:

 

 

Please use plain text.
Developer
simon_hain
Posts: 16,209
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: TableField in blackberry application

you can exchange the comparator of a simplesortingvector and re-sort it with ease.

listfield works well in this case. all you need is an additional control that triggers the re-sort, like some buttonfields or a specially crafted titlefield.

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
RexDoug
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: TableField in blackberry application

Please use plain text.