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

Discussion in 'Android Questions' started by Condata Informatica, Jun 12, 2019.

  1. Condata Informatica

    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.

    'dim mapaEscalonado as map

    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

    End If

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

    any Ideas?
    Last edited: Jun 12, 2019
  2. somed3v3loper

    somed3v3loper Well-Known Member Licensed User

    I am not sure I understand your problem but this lists all keys and values
    For Each k In mapaEscalonado.Keys
    Log(k& " = "&mapaEscalonado.Get(k))
    Condata Informatica likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice