Android Question CLV , CreateMap - How i can get the specific Values

Condata Informatica

Member
Licensed User
I need to get the values that are mapped and do a routine to assign these values in a normal lstview.
but I always return the last value in the index.
and also I did not understand how I can pull the keys of the created map and assign to the item of the listview.

B4X:
'dim mapaEscalonado as map

mapaEscalonado.Initialize
    For i=0 To CustomListViewPRODUTOSESCALONADOS.Size -1
        Dim pnl As B4XView = CustomListViewPRODUTOSESCALONADOS.GetPanel(i)
        Dim nomeprodutoEscalonado As B4XView = pnl.GetView(0).GetView(3)
        Dim edtText As B4XView = pnl.GetView(0).GetView(2)
        Dim listProdutoEscalonado As List
    If edtText.Text > 0 Then
                Log( "Produto: " & nomeprodutoEscalonado.Text)
                ItemEscalonado = nomeprodutoEscalonado.Text
                Log( "QTDE: " & edtText.Text)
                QTDitemEscalonado = edtText.Text
                mapaEscalonado.Put(ItemEscalonado,QTDitemEscalonado)

     End If
    Next

   For i = 0 To mapaEscalonado.Size - 1
       Log("Key: " & mapaEscalonado.GetKeyAt(i))
       Log("Value: " & mapaEscalonado.GetValueAt(i))

   Next
any Ideas?
 
Last edited:
Top