For each page, I Log in the Page_ParseEvent:
Sub Page_ParseEvent(Params As Map)
Dim eventName As String = Params.Get("eventname")
Dim eventParams() As String = Regex.Split(",",Params.Get("eventparams"))
Log(" event name: "&eventName&" "&Params) ' log these...
event name: btnNewMeeting_clicked (MyMap) {eventparams=target, eventname=btnnewmeeting_clicked, target=btnnewmeeting}
This shows what event was fired (if any - if registered), its' name and what the parameters are for that event. I often forget what the ID name is...
ie.: Standard button click....
event name: btnNewMeeting_clicked (MyMap) {eventparams=target, eventname=btnnewmeeting_clicked, target=btnnewmeeting}
More obscure...
This is from a ABMdatepicker date changed event. It won't fire UNLESS you change the date. ( I did not know - nor would have found it otherwise).
event name: startdate_changed (MyMap) {datemilliseconds=1485158400000, eventparams=target,datemilliseconds, eventname=startdate_changed, target=datebox-content-startdate}
When date has changed, the event fired does this:
Sub startdate_changed(Target As String, datt As String)
Dim datbox As ABMModalSheet = page.ModalSheet("datebox")
Dim mtmeet As ABMInput = datbox.Content.Component("meetname")
Dim dt As Long
dt = datt
mtmeet.Text = DateTime.Date(dt)
mtmeet.Refresh
Log("milli: "&datt)
' All that happens is a text field is updated to reflect the NEW date chosen. This new text is displayed and stored in a table.
End Sub
Actually, since this is
SO Important, I shall ask for a feature in Feedback to turn this
ON or
OFF, as a constant feature.
Without this one simple line: Log(" event name: "&eventName&" "&Params),
I would have no idea as to what has fired or what params are required at any given mouse click.
Essentially, this is how I learned what happens and how ABM works - under the hood.
Everything else is simple coding....
Thanks