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
ksg1ajel
Posts: 46
Registered: ‎07-07-2011
My Device: 9800
My Carrier: BlackBerry

How to get Index of field in BasicFilteredList?

      fl1 = new BasicFilteredList();
    
	  fl1.addDataSet(0,chs1,"Temperature",BasicFilteredList.COMPARISON_IGNORE_CASE);
	 
	 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 am able to get Field in String Format , but i am unable to get an Index of that corresponding Field. Is there any method or way, please reply  
Thanks
 

 

Please use plain text.