Hi,
I am using one main activity which loads a main layout. On this layout I have a TabHost in which I load 4 tabs with a page layout on each, like this:
The Load layout has a panel on it called pnlLoad. I add a SearchView on it like this:
This works successfully, but the items in the list are all displayed like this:
[Ljava.lang.String;@41623980
[Ljava.lang.String;@41623a30
[Ljava.lang.String;@41623a98
and so on.
This is how I create the list, which gets created successfully as I can see the AWB numbers in the debugger. the numbers are like 998056231.
This is how I load the numbers into the SearchView:
Can anyone see what I am doing wrong?
I am using one main activity which loads a main layout. On this layout I have a TabHost in which I load 4 tabs with a page layout on each, like this:
B4X:
tbhMain.AddTab("Select Route","SelectRoute")
tbhMain.AddTab("Load","Load")
tbhMain.AddTab("Deliver","Deliver")
tbhMain.AddTab("Upload","Upload"
The Load layout has a panel on it called pnlLoad. I add a SearchView on it like this:
B4X:
svwAWB.AddToParent(pnlLoad, 0, 0, 300dip, 300dip)
This works successfully, but the items in the list are all displayed like this:
[Ljava.lang.String;@41623980
[Ljava.lang.String;@41623a30
[Ljava.lang.String;@41623a98
and so on.
This is how I create the list, which gets created successfully as I can see the AWB numbers in the debugger. the numbers are like 998056231.
This is how I load the numbers into the SearchView:
B4X:
If FirstTime Then
Dim AWBs As List
AWBs = DBUtils.ExecuteMemoryTable(SQLLite, "SELECT awb_number FROM RunSheetDetails", Null, 0)
AWBIndex = svwAWB.SetItems(AWBs)
Else
svwAWB.SetIndex(AWBIndex)
End If
Can anyone see what I am doing wrong?