Dim Query As Supabase_DatabaseSelect = xSupabase.Database.SelectData
Query.Columns("*").From("dt_Rooms")
Wait For (Query.Execute) Complete (DatabaseResult As SupabaseDatabaseResult)
For Each Row As Map In DatabaseResult.Rows
Dim xpnl As B4XView = xui.CreatePanel("")
xpnl.SetLayoutAnimated(0,0,0,Root.Width,50dip)
xpnl.LoadLayout("frm_RoomItem1")
Dim xlbl_RoomName As B4XView = xpnl.GetView(0)
xlbl_RoomName.Text = Row.Get("name") 'Fill the Room Name to the Label
xclv_ChatRooms.Add(xpnl,Row.Get("id")) 'Gets the Room Id
Next