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

How to get Index ?

      fl1 = new BasicFilteredList();
      fl2 = new BasicFilteredList();
     
      
	  fl1.addDataSet(0,chs1,"Temperature",BasicFilteredList.COMPARISON_IGNORE_CASE);
	  fl2.addDataSet(0,chs2,"Pressure",BasicFilteredList.COMPARISON_IGNORE_CASE);  
	
	  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.

 

Developer
Posts: 16,495
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: How to get Index ?

http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/collection/util/BasicFilteredL...
----------------------------------------------------------
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