Hello guys,
It seem that class made of ABMTable still not catch an event.
Here are my class declaration :
Noticed in that code, a line, Tbl.EventHandler = Me, but class didn't have a Sub ParseEvent.
App compile and run OK, only :
1) No error in B4J's log
2) No event catch
With another class made of ABMInput, without Sub ParseEvent in that class, App won't run & B4J's log raised an error, indicated that Sub ParseEvent not found.
It seem that class made of ABMTable still not catch an event.
Here are my class declaration :
B4X:
Sub Class_Globals
Private ABM As ABMaterial
Public Tbl As ABMTable
Private ObjectId As String
Private TblTheme = "tbltheme" As String
Private TblHeaderTheme = "tblheader" As String
Private TblRowTheme = "tblrow" As String
Private NoOfRows, NoOfCols As Int
Private TmpId = -10 As Int
Type CellInfo(Val As String,Thm As String)
End Sub
Sub Initialize(page As ABMPage,Handler As String, Headers() As String)
Tbl.Initialize(page, Handler, False, False, False, TblTheme)
Tbl.SetHeaders(Headers)
Tbl.SetColumnDataFields(Headers)
Private HeadThemes As List
Private VisibilityCol As List
HeadThemes.Initialize
VisibilityCol.Initialize
For i = 0 To Headers.Length - 1
HeadThemes.Add(TblHeaderTheme)
VisibilityCol.Add(True)
Next
Tbl.SetHeaderThemes(HeadThemes)
Tbl.SetColumnVisible(VisibilityCol)
Tbl.IsBordered = True
Tbl.EventHandler = Me
ObjectId = Handler
End Sub
Noticed in that code, a line, Tbl.EventHandler = Me, but class didn't have a Sub ParseEvent.
App compile and run OK, only :
1) No error in B4J's log
2) No event catch
With another class made of ABMInput, without Sub ParseEvent in that class, App won't run & B4J's log raised an error, indicated that Sub ParseEvent not found.