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

Posts: 46
Registered: ‎07-07-2011
My Device: 9800
My Carrier: BlackBerry

How to get Index ?

      fl1 = new BasicFilteredList();
      fl2 = new BasicFilteredList();
	  acf2 = new AutoCompleteField(fl2,Field.FIELD_LEFT);
	  acf1 = new AutoCompleteField(fl1,Field.FIELD_RIGHT)
	      public void onSelect(Object s,  int type) {
	      super.onSelect(s, type);
         if(s != null) {
             ss =getEditField().getText();// ss is String variable

 I want to get Index of field in BasicFilteredList(fl1)  which was selected in AutoCompleteField(acf1). 

I can able to get field value in AutoCompleteField(acf1) in String Form.

Please any one tell the way to get Index.


Posts: 17,011
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to get Index ?

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