B4J Question [ABMaterial] ABMInput Changed Event not work

micro

Well-Known Member
Licensed User
Longtime User
Hi to all
This is the code
B4X:
Dim txtcercatable As ABMInput
  txtcercatable.Initialize(page, "txtcercatable", ABM.INPUT_TEXT, "Cerca in Table", True, "inpuauto")
  txtcercatable.IconName = "mdi-action-search"
  txtcercatable.RaiseChangedEvent = True
  page.Cell(3,1).AddComponent(txtcercatable)

B4X:
Sub txtcercatable_Changed(value As String)
    Log(value)
End Sub

The sub is never raised, why?
Where i'm wrong?

Thanks
 

micro

Well-Known Member
Licensed User
Longtime User
Now work, this is correct
B4X:
txtcercatable.Initialize(page, "txtcercatable", ABM.INPUT_TEXT, "Cerca in Table", False, "inpuauto")

IsTextArea = false

Thanks
 
Upvote 0

Harris

Expert
Licensed User
Longtime User
And as always, log the Page_ParseEvent to see what is going on...

B4X:
Sub Page_ParseEvent(Params As Map)
    Dim eventName As String = Params.Get("eventname")
    Dim eventParams() As String = Regex.Split(",",Params.Get("eventparams"))
    
    ' log the events and params.....
    Log(" event name: "&eventName&" param: "&eventParams(0))
    Log(" Passed params: "&Params)
 
Upvote 0

micro

Well-Known Member
Licensed User
Longtime User
Hy, I am back, i resumed doing tests.
I confirm that the event changed (ABMInput) not work well (I do not know why sometimes it worked but i tried on another pc o_O?!?)
In ParsEvent i have gotfocus and lostfocus but not changed.
From where it can depend?
 
Upvote 0
Top