Can this button fire a clicked event?
I supposed it could :
But the event doesn't fire :
My console log says :
Am I doing something wrong?
I supposed it could :
B4X:
Dim btnaction1 As ABMActionButton
btnaction1.Initialize(page,"btnOpslaan" & counter,"mdi-content-save","red")
btnaction1.MainButton.size = ABM.BUTTONSIZE_LARGE
Tabc.Cell(1,2).AddComponent(btnaction1)
B4X:
Sub btnOpslaan1_Clicked(Target As String, SubTarget As String)
Dim mykraan As kraan
mykraan = Main.Kranen.Get(0)
Log(mykraan.MachineNaam)
Dim mytab As ABMTabs = page.Component("tabs")
Dim mytabcontainer As ABMContainer = mytab.GetTabPage("tab1")
Dim commid As ABMInput = mytabcontainer.Component("txtcommid1")
Dim id As ABMInput = mytabcontainer.Component("txtid1")
Dim combotype As ABMCombo = mytabcontainer.Component("cmdtype1")
Dim checkcontrole As ABMCheckbox = mytabcontainer.Component("chkcontrole1")
Dim produktomschrijving As ABMInput = mytabcontainer.Component("txtproduktomschrijving1")
End Sub
But the event doesn't fire :
My console log says :
(index):1 Uncaught ReferenceError: actionbuttonclickarray is not defined
Am I doing something wrong?