B4J Question [ABMaterial] AddArrayComponent() InputBox

XbNnX_507

Active Member
Licensed User
Hi, i have this code in my webPage.

B4X:
dim inp1 as ABMinput
inp1.initialize(..)
page.addArrayComponent(inp1, "inp")

dim inp2 as ABMinput
inp2.initialize(..)
page.addArrayComponent(inp2, "inp")
Nor click, focus or enterpressed events get fired. Why? is this a bug?

B4X:
Sub inp_Clicked( value as String)
 ' nothing happens..
End Sub
Thanks.
 

XbNnX_507

Active Member
Licensed User
Search button "click" malfunctioning as well? Dang!!! I am starting to sound more like DonM every post... And I wonder why.
Lol :p

You see, i was in a hurry and i made typos when i wrote the post.
Now here
B4X:
    Dim inp1 As ABMInput
    inp1.initialize(page, "1",  ABM.INPUT_TEXT, "" , False, "")
    page.Cell( 1, 1).AddArrayComponent(inp1, "inp")

    Dim inp2 As ABMInput
    inp2.initialize(page, "2", ABM.INPUT_TEXT, "" , False, "")
    page.Cell( 1, 1).AddArrayComponent(inp2, "inp")
    
    
    
    Dim switch1 As ABMChip
    switch1.Initialize(page, "3", "switch1", False, "")
    page.Cell( 2, 1).AddArrayComponent(switch1, "switch")
    
    Dim switch2 As ABMChip
    switch2.Initialize(page, "4", "switch2", False, "")
    page.Cell( 2, 1).AddArrayComponent(switch2, "switch")


Sub switch_Clicked(Target As String)
    Log ( Target ) 'This works Great!
End Sub

Sub inp_EnterPressed(value As String)
    Log ( value ) 'This doesn't work <<<<<  
End Sub

Sub inp_GotFocus()
    Log ( "got focus")  'This doesn't work either... :(
End Sub
Thanks.
 

Harris

Well-Known Member
Licensed User
LOL!!!

There is a lack of a "Discard" button when posting... You are committed when "attempting" to post - no going back (unless you kill the tab).
No harm, no foul, no freakin prob....

As Toby Kieth would sing... "I Love this Bar - Come as You Are"...
Followed by: Red Solo Cup... You Fill Me Up - LET'S HAVE A PARTY!"
 

Harris

Well-Known Member
Licensed User
That's an @Erel issue... Or rather this forum he uses - which is otherwise awesome...
Works great - less filling...
 

Cableguy

Expert
Licensed User
For me the easiest way to get the correct name of the event I want is to un-comment the "Log(eventname)" line in the parse event sub in the page module
 
Top