Hi,
I had tried with the following examples to create a searchable listview from where data were retrieved from the SQLLite tables.
https://www.b4x.com/android/forum/t...es-contactsutils-with-searchview.31372/page-2
Following are the codes that I am using and successfully added to the panel. My problem is when I write on search text box nothing shows in SearchList !!! I mean searching is not working and the listbox blanked. If anyone have any sample code will be helpfull for me.
Thanks
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Also I have changed the AddItemsToList for AddSingleLine
lv.AddSingleLine2(it.Title, it.Text)
			
			I had tried with the following examples to create a searchable listview from where data were retrieved from the SQLLite tables.
https://www.b4x.com/android/forum/t...es-contactsutils-with-searchview.31372/page-2
Following are the codes that I am using and successfully added to the panel. My problem is when I write on search text box nothing shows in SearchList !!! I mean searching is not working and the listbox blanked. If anyone have any sample code will be helpfull for me.
Thanks
			
				B4X:
			
		
		
		Sub Globals
    Dim srvwRetailer As SearchView
    Private retList As List
End Sub
Sub FILL_LIST
        Dim cur As Cursor
        cur = Starter.sqlLiteDB.ExecQuery("SELECT PARTY_NAME, PARTY_SMS_CODE FROM tblCustomer WHERE PARTY_TYPE = 'R' ORDER BY PARTY_NAME")
        retList.Initialize
    For i = 0 To cur.RowCount - 1
        cur.Position = i
        Dim it As Item
        it.Title = cur.GetString("PARTY_NAME")
        it.Text = cur.GetString("PARTY_SMS_CODE")
        it.SearchText = cur.GetString("PARTY_NAME")
        retList.Add(it)
    Next
    srvwRetailer.SetItems(retList)
End SubAlso I have changed the AddItemsToList for AddSingleLine
lv.AddSingleLine2(it.Title, it.Text)
			
				Last edited: 
			
		
	
								
								
									
	
								
							
							 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		