B4J Question [ABMaterial] AddArrayComponent() InputBox

Discussion in 'B4J Questions' started by XbNnX_507, May 31, 2019.

  1. XbNnX_507

    XbNnX_507 Active Member Licensed User

    Hi, i have this code in my webPage.

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

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

    Sub inp_Clicked( value as String)
    ' nothing happens..
    End Sub
  2. Harris

    Harris Well-Known Member Licensed User

  3. XbNnX_507

    XbNnX_507 Active Member Licensed User

    Lol :p

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

    Dim inp2 As ABMInput
    page"2", ABM.INPUT_TEXT, "" , False"")
    page.Cell( 11).AddArrayComponent(inp2, "inp")
    Dim switch1 As ABMChip
    page.Cell( 21).AddArrayComponent(switch1, "switch")
    Dim switch2 As ABMChip
    page.Cell( 21).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
  4. Harris

    Harris Well-Known Member Licensed User


    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!"
  5. XbNnX_507

    XbNnX_507 Active Member Licensed User

    :p I know this for a fact.
    Anyway hope @alwaysbusy fix this.
  6. Harris

    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...
  7. Cableguy

    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
  8. alwaysbusy

    alwaysbusy Expert Licensed User

    Is indeed a bug. Will be fixed in the next version.
    Harris and XbNnX_507 like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice