I am using this example:
What I need to achieve is to read the Panel Id when one of the two Buttons are Clicked
Then action the Button function to Accept or Reject - On Reject, I must delete the item from the list
I have tried the following to get panel id:
How do I read the lblTitle.text of a panel on the Button_Click event
I always get :Item# 20" - the last item in the CustomListView, not the Item that I Clicked
I have changed the name of the 2 X Buttons.[B4X] [XUI] Expandable list based on xCustomListView
Edit: Better to use CLVExpandable class: https://www.b4x.com/android/forum/threads/b4x-clvexpandable-allows-expanding-or-collapsing-xcustomlistview-items.106148/ Compatible with B4A, B4J and B4i. This example uses a slightly modified version of xCustomListView to create an expandable...www.b4x.com
What I need to achieve is to read the Panel Id when one of the two Buttons are Clicked
Then action the Button function to Accept or Reject - On Reject, I must delete the item from the list
I have tried the following to get panel id:
B4X:
Sub btnAccept_Click
Dim v As Button
v = Sender
Dim MyIndex As Int
Dim MyIndex = clv1.GetPanel(v)
LogColor("Button Accept: " & MyIndex, Colors.blue)
End Sub
I always get :Item# 20" - the last item in the CustomListView, not the Item that I Clicked
Last edited: