Hi guys, anyone knows how to set and get the "value" of the listview in B4XSearchTemplate ?
I need to display/search a string value and "lookup" another value.
In the standard way, I populate the list as:
I would like to do something like:
So that, when I choose one item I can have "1" or "3" or "7" [...] instead of "First item" or "Second item" [...]
I tried using, but without luck:
srcCustomListView1.AddTextItem
src.CustomListView1.GetValue([...])
Thanks in advance
I need to display/search a string value and "lookup" another value.
In the standard way, I populate the list as:
B4X:
Dim src As B4XSearchTemplate
Dim L As List
L.Initialize
L.add("First item")
L.add("Second item")
L.add("Third item")
src.SetItems(L)
I would like to do something like:
B4X:
Dim src As B4XSearchTemplate
Dim M As Map
M.Initialize
M.put(1,"First item")
M.put(3,"Second item")
M.put(7,"Third item")
src.SetItems(M)
So that, when I choose one item I can have "1" or "3" or "7" [...] instead of "First item" or "Second item" [...]
I tried using, but without luck:
srcCustomListView1.AddTextItem
src.CustomListView1.GetValue([...])
Thanks in advance