How can i access the item selected from a list in one screen and pass it to another screen?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can get the selected row information by calling
listField.getSelectedIndex(). This will return the selected row. Then you can get the value from the collections you have.You have to implement
ListFieldCallbackinterface and set the callback for thelistfieldby callinglistField.setCallback(ListFieldCallback callback). AListFielduses a class that implements theListFieldCallbackinterface to perform drawing tasks. Then when a ListField must display an item in its list, it invokes the appropriate methods of the registered callback class.check this example to know more about implementing listfield Custom listfield