B4J Question [ABMaterial] AddArrayComponent() InputBox

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

Tags:
  1. XbNnX_507

    XbNnX_507 Active Member Licensed User

    Hi, i have this code in my webPage.

    Code:
    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?

    Code:
    Sub inp_Clicked( value as String)
     
    ' nothing happens..
    End Sub
    Thanks.
     
  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
    Code:
    Dim inp1 As ABMInput
        inp1.initialize(
    page"1",  ABM.INPUT_TEXT, "" , False"")
        
    page.Cell( 11).AddArrayComponent(inp1, "inp")

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

    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!"
     
  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.
Loading...
  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