ABM 4.51, B4J 8.5
I'm experiencing a similar problem to one which I had here however without a container being involved.
I've created a table, each row of which can have multiple sub tables. Each of those sub tables has an ABMInput control on it.
I can access all the controls and can read text in all the normal fields. I can get a link to the ABMInput control. When i try to read the text that I've typed into it I get a NullPointerException.
Code that I'm using to check things...
I've checked futuretext and it's not showing anything - as follows...
error as soon as I try to read the text field
Any thoughts? Bug? Something in my setup?
TIA!
I'm experiencing a similar problem to one which I had here however without a container being involved.
I've created a table, each row of which can have multiple sub tables. Each of those sub tables has an ABMInput control on it.
I can access all the controls and can read text in all the normal fields. I can get a link to the ABMInput control. When i try to read the text that I've typed into it I get a NullPointerException.
Code that I'm using to check things...
B4X:
'Ok that's the main table row done - now to whatever data is in the subtables
Dim SubTable As ABMTable = StockSearchTable.GetComponent (0,"UID" & m.Get("id"))
SubTable.PrepareTableForRetrieval
For y = 0 To 999
Dim s As Map
s.Initialize
s.Put("did",m.Get("id"))
s.Put ("sid",SubTable.GetString(y,0)) 'This works fine and returns a value
Dim stb As ABMInput = SubTable.GetComponent(y,"usetb" & y) 'This also works and I get the ABMInput control
Dim t As String = stb.Text 'This throws an error
s.Put ("QtyStock", t)
stable.Add(s)
Next
I've checked futuretext and it's not showing anything - as follows...
error as soon as I try to read the text field
Any thoughts? Bug? Something in my setup?
TIA!