T Tomas Petrus Active Member Licensed User Longtime User Feb 7, 2019 #1 Hi guys I am implementing XUI CustomListView, but I am unable to handle the click properly... B4X: Sub HomeClv_ItemClick (Index As Int, Value As Object) LoadDetailZakazky End Sub I were following some tutorial and using ItemValue as following B4X: Type ItemValue (BeruBtn As Button, NeberuBtn As Button, Nastup As String, Tag As String) in Values I have B4X: [BeruBtn=(Button) Not initialized, IsInitialized=true, Nastup=adresa, NeberuBtn=(Button) Not initialized, Tag=5494] How the bloody hell can I parse Tag from Values which is the order ID that I need to make another API call for details of the order. Thanks a lot been stuck a while.
Hi guys I am implementing XUI CustomListView, but I am unable to handle the click properly... B4X: Sub HomeClv_ItemClick (Index As Int, Value As Object) LoadDetailZakazky End Sub I were following some tutorial and using ItemValue as following B4X: Type ItemValue (BeruBtn As Button, NeberuBtn As Button, Nastup As String, Tag As String) in Values I have B4X: [BeruBtn=(Button) Not initialized, IsInitialized=true, Nastup=adresa, NeberuBtn=(Button) Not initialized, Tag=5494] How the bloody hell can I parse Tag from Values which is the order ID that I need to make another API call for details of the order. Thanks a lot been stuck a while.
T Tomas Petrus Active Member Licensed User Longtime User Feb 7, 2019 #2 Like always it will be something easy, but I just cant see it now Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Feb 7, 2019 #3 B4X: Dim iv As ItemValue = Value Log(iv.Tag) Upvote 0