Android Question B4XTable to EditText

teddybear

Well-Known Member
Licensed User
Hello guys,

Please Help, how to get data from B4XTable to EditText. Thank you.

TJ

Get row into a map from b4xtable, then set EditText by the map.
B4X:
Dim Item As Map = B4XTable.GetRow(RowId)
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Instead of using PreferencesDialog, you can read the cell and pass to an EditText.
 
Upvote 0

TJ_Jake

New Member
Get row into a map from b4xtable, then set EditText by the map.
B4X:
Dim Item As Map = B4XTable.GetRow(RowId)
Thanks for the answer. Sorry newbie here. Can i get only the value? Example, if i got is {Number=1001, Name=John, Age=19} but i only need the value, for text1=1001, text2=John and text3=19.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Thanks for the answer. Sorry newbie here. Can i get only the value? Example, if i got is {Number=1001, Name=John, Age=19} but i only need the value, for text1=1001, text2=John and text3=19.
The value of a Map is accessed using Get and Key as the parameter.
Example:
B4X:
txtName.Text = Item.Get("Name")
 
Upvote 1

Similar Threads

Replies
6
Views
1K
  • Question
Android Question HttpJob
Replies
1
Views
1K
  • Question
Android Question webSocket
Replies
1
Views
604
  • Question
Android Question WML?
Replies
2
Views
672
Top