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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Developer
New Developer
pc
Posts: 16
Registered: ‎08-03-2009

ListField item to next screen on pressing enter key


Hi all,

I have screen with ListField component.
ListField is displaying 10 records.
I want to show the next screen when the user is pressing the enter key or space key after selecting one of the row in ListField.

Currently i am using the drawListRow() function.

What is best procedure to show the next screen to the user when he is selecting one of the row in the ListField.
Can you give some sample code for this.

There is any functions available to do this thing.




Please use plain text.
Developer
simon_hain
Posts: 13,830
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: ListField item to next screen on pressing enter key

first, overwrite keydown or keychar to handle the pressed key.
if an object is selected in the listfield push a screen and give it the selected object as a parameter.
----------------------------------------------------------
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.