Hello,
I made a Class for ABMTable and found that if a variable type of ABMTable not passed to Sub Initialize in class declaration, will made click event didn't passed to a Sub Page_ParseEvent.
Here are the codes that won't pass click event
If change those codes to this
Noticed that, now AbTbl as type of ABMTable passed in Sub Initialize & with this codes click event passed to a Sub Page_ParseEvent.
Just curious why this is happen cause on other class for ABMInput, no need to pass a variable type ABMInput & events passed correctly to Sub Page_ParseEvent.
I made a Class for ABMTable and found that if a variable type of ABMTable not passed to Sub Initialize in class declaration, will made click event didn't passed to a Sub Page_ParseEvent.
Here are the codes that won't pass click event
B4X:
Sub Initialize(page As ABMPage,Handler As String, Headers() As String) As ABMTable
Private AbTbl As ABMTable
AbTbl.Initialize(page, Handler, False, False, True, TblTheme)
AbTbl.SetHeaders(Headers)
AbTbl.SetColumnDataFields(Headers)
AbTbl.IsResponsive = True
Private HeadThemes As List
HeadThemes.Initialize
For i = 0 To Headers.Length - 1
HeadThemes.Add(TblHeaderTheme)
Next
AbTbl.SetHeaderThemes(HeadThemes)
AbTbl.IsBordered = True
Tbl = AbTbl
Log("initialize")
Return AbTbl
End Sub
If change those codes to this
B4X:
Sub Initialize(page As ABMPage,AbTbl As ABMTable,Handler As String, Headers() As String) As ABMTable
AbTbl.Initialize(page, Handler, False, False, True, TblTheme)
AbTbl.SetHeaders(Headers)
AbTbl.SetColumnDataFields(Headers)
AbTbl.IsResponsive = True
Private HeadThemes As List
HeadThemes.Initialize For i = 0 To Headers.Length - 1
HeadThemes.Add(TblHeaderTheme)
End If
Next
AbTbl.SetHeaderThemes(HeadThemes)
AbTbl.SetColumnVisible(VisibilityCol)
AbTbl.IsBordered = True
Tbl = AbTbl
Log("initialize")
Return AbTbl
End Sub
Noticed that, now AbTbl as type of ABMTable passed in Sub Initialize & with this codes click event passed to a Sub Page_ParseEvent.
Just curious why this is happen cause on other class for ABMInput, no need to pass a variable type ABMInput & events passed correctly to Sub Page_ParseEvent.