B4J Question [Solved] How... GetItemFromView in CustomListView when sender is SwiftButton?

Dadaista

Active Member
Licensed User
Longtime User
Hi
Well, that is all

I used to use when "normal" button
B4X:
Dim index As Int
    index = clv4.GetItemFromView(Sender)
   
    Dim pnl As B4XView
    pnl = clv4.GetPanel(index)

But now I am getting this error
B4X:
java.lang.ClassCastException: class Almacen.swiftbutton cannot be cast to class javafx.scene.Node (Almacen.swiftbutton is in unnamed module of loader 'app'; javafx.scene.Node is in module javafx.graphics of loader 'app')

In the line
B4X:
index = clv4.GetItemFromView(Sender)

I am searching in the forum but I do not find it

Thx
 
Top