Hello,
I have the problem that the tag is saved when creating the CustomListView. However, with the ClickEvent on the panel, the tag is Empty
Add the CLV with this Code:
And this is the CLV Create Code:
Result from MsgBox (On the Click Event) is Empty.
Result from Msgbox (TestTag) its OK..
Maybe someone knows a Solution
I have the problem that the tag is saved when creating the CustomListView. However, with the ClickEvent on the panel, the tag is Empty
Add the CLV with this Code:
B4X:
clvList.Add(CreateListItem_Product(TagID.Text,txtPRODNAME.Text,txtPRODINFO.Text,"€ " & txtPRODPRICE.Text, 440dip, 100dip), 100dip,ID)
B4X:
Sub CreateListItem_Product(TagPNLLEFT As String, ProduktnameLEFT As String, InfoLEFT As String, PriceLEFT As String, Width As Int, Height As Int) As Panel
Dim p As Panel
p.Initialize("")
Activity.AddView(p, 0, 0, 440dip, Height)
p.LoadLayout("Product_ListValue")
p.RemoveView
lblLEFTPRODName.Text = ProduktnameLEFT
lblLEFTPRODZusatz.Text = InfoLEFT
lblLEFTPRODPreis.text = PriceLEFT
pnlLEFTPROD.Tag=TagPNLLEFT
Msgbox (pnlLEFTPROD.Tag,"TestTag")
End Sub
Sub pnlLEFTPROD_Click
Msgbox(pnlLEFTPROD.Tag,"TAG Left")
End Sub
Result from MsgBox (On the Click Event) is Empty.
Result from Msgbox (TestTag) its OK..
Maybe someone knows a Solution