B4J Question [BANano] [SOLVED] How to create a table with BANano.Console.Table?

Mashiane

Expert
Licensed User
Longtime User
Ola

I've been trying to get a table displaying on the console log by passing it a list of objects i.e maps.

I cant seem to make it work. Can you please advise?

This is the list Id like to display on the console log?
B4X:
Sub BulkFruit As List
    Dim lst As List
    lst.Initialize
    lst.Add(CreateMap("_id": "apple:fuji", "name": "Fuji", "price": 1.05))
    lst.Add(CreateMap("_id": "apple:applecrisp", "name": "Apple Crisp", "price": 1.33))
    lst.Add(CreateMap("_id": "pear:bosc", "name": "Bosc", "price": 1.95))
    lst.Add(CreateMap("_id": "apple:goldendelicious", "name": "Golden Delicious", "price": 1.27))
    lst.Add(CreateMap("_id": "pear:bartlett", "name": "Bartlett", "price": 1.02))
    Return lst
End Sub

Thanks.
 

Mashiane

Expert
Licensed User
Longtime User
Me me me... didnt click refresh on the browser..

This is awesome! Wish I knew about this console functionality a long time ago! phew.

B4X:
BANano.Console.Table(apples, Null)

1633295609174.png
 
Upvote 0
Top