How do I capture the index for B4XRadioButton_Checked inside xCustomListView?
I got an error:
java.lang.ClassCastException: b4j.example.b4xradiobutton cannot be cast to javafx.scene.Node
Sample project attached.
Edit: Sorry, I wrongly upload B4J project. Please move to B4J forum. Thanks.
I got an error:
java.lang.ClassCastException: b4j.example.b4xradiobutton cannot be cast to javafx.scene.Node
B4X:
Private Sub B4XRadioButton3_Checked
Dim Index As Int = CLV.GetItemFromView(Sender)
Dim pnl As B4XView = CLV.GetPanel(Index)
Dim Sel As B4XView = pnl.GetView(0)
For Each v As B4XView In CLV.AsView.GetAllViewsRecursive
If v Is B4XRadioButton And v.Tag <> Sel.Tag Then
v.Checked = False
End If
Next
Log(pnl)
Log(Index)
End Sub
Sample project attached.
Edit: Sorry, I wrongly upload B4J project. Please move to B4J forum. Thanks.