JGiunta
Member
Hello,
I am trying to create an UltimateListView using data from a SQLite database.
How do i achieve this?
I thought about executing the query in the Activity_Create, like this:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Then scroll the cursor in the RowContentFiller, like this:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
This prompts a few questions:
How do i tell it how many items are there (In the SQL Table or in a hypothetical list?)
How else can i code this?
Thank you for your time.
			
			I am trying to create an UltimateListView using data from a SQLite database.
How do i achieve this?
I thought about executing the query in the Activity_Create, like this:
			
				Activity_Create:
			
		
		
		    Dim ConnessioneDB As SQL
    ConnessioneDB.Initialize(File.DirInternal, "DatabaseListino.sqlite",False)
    Cursore = ConnessioneDB.ExecQuery("SELECT * FROM Giacenza where Barcode =" )
    Cursore.Position = 0Then scroll the cursor in the RowContentFiller, like this:
			
				RowContentFiller:
			
		
		
		If( Cursore.Position <= Cursore.RowCount - 1) Then
    Dim Oggetto As OggettoCarrello
    Oggetto.Barcode = Cursore.GetString("Barcode")
    Oggetto.Quantita = Cursore.GetString("Quantita")
    
    CellPanel.GetView(0).As(Label).Text = Oggetto.Barcode
    CellPanel.GetView(1).As(Label).Text = Oggetto.Quantita    
        Cursore.Position = Cursore.Position + 1   
    End IfThis prompts a few questions:
How do i tell it how many items are there (In the SQL Table or in a hypothetical list?)
How else can i code this?
Thank you for your time.
 
				 
 
		 
 
		 
 
		 
 
		 
 
		