romario87027 Active Member Licensed User Longtime User Jan 24, 2014 #1 There is a progess indicator during the filling of a TableView? Insert many records in a TableView, and hangs around until it has loaded. I can do?
There is a progess indicator during the filling of a TableView? Insert many records in a TableView, and hangs around until it has loaded. I can do?
Erel B4X founder Staff member Licensed User Longtime User Jan 26, 2014 #2 No. There isn't much that can be done about this as it is also not possible to fill the table with a background thread. How large is the table? Maybe you should use a local database and show less records? Upvote 0
No. There isn't much that can be done about this as it is also not possible to fill the table with a background thread. How large is the table? Maybe you should use a local database and show less records?
romario87027 Active Member Licensed User Longtime User Jan 27, 2014 #3 I already use a local database. I do not know if you could view the records as divided in 10 -10-10 ... and so on. Then another thing that happens is that the TextField is not displayed in the TableView. You can seeonly after you resize the column. see image... Attachments tableview.png 46.9 KB · Views: 610 Upvote 0
I already use a local database. I do not know if you could view the records as divided in 10 -10-10 ... and so on. Then another thing that happens is that the TextField is not displayed in the TableView. You can seeonly after you resize the column. see image...
Erel B4X founder Staff member Licensed User Longtime User Jan 28, 2014 #4 I do not know if you could view the records as divided in 10 -10-10 Click to expand... You can always sort the data and then only add the "current page" rows. About the TextField issue, can you upload a small project that demonstrates it? Upvote 0
I do not know if you could view the records as divided in 10 -10-10 Click to expand... You can always sort the data and then only add the "current page" rows. About the TextField issue, can you upload a small project that demonstrates it?
romario87027 Active Member Licensed User Longtime User Jan 28, 2014 #5 I have broken records every 15: Code: Copy listarticoli = parser.NextArray 'returns a list pagMax = listarticoli.Size / 15 pagCorrente = 1 lblPage.Text = pagCorrente & "/" & pagMax forward 15 Code: Copy Sub btAvanti_Action () If pagCorrente < pagMax Then pagCorrente = pagCorrente + 1 lblPage.Text = pagCorrente & "/" & pagMax AggiornaArticoli(listarticoli) End If back 15 Code: Copy Sub btIndietro_Action () If pagCorrente > 1 Then pagCorrente = pagCorrente - 1 lblPage.Text = pagCorrente & "/" & pagMax AggiornaArticoli(listarticoli) End If End Sub and visualize the current page Code: Copy Dim i As Int i = (pagCorrente * 15 ) -15 For i = i To i + 15 If i<= RSean.Size Then M= RSean.Get(i) end if next showing 15 records has solved the problem of txtfield Thanks Erel Upvote 0
I have broken records every 15: Code: Copy listarticoli = parser.NextArray 'returns a list pagMax = listarticoli.Size / 15 pagCorrente = 1 lblPage.Text = pagCorrente & "/" & pagMax forward 15 Code: Copy Sub btAvanti_Action () If pagCorrente < pagMax Then pagCorrente = pagCorrente + 1 lblPage.Text = pagCorrente & "/" & pagMax AggiornaArticoli(listarticoli) End If back 15 Code: Copy Sub btIndietro_Action () If pagCorrente > 1 Then pagCorrente = pagCorrente - 1 lblPage.Text = pagCorrente & "/" & pagMax AggiornaArticoli(listarticoli) End If End Sub and visualize the current page Code: Copy Dim i As Int i = (pagCorrente * 15 ) -15 For i = i To i + 15 If i<= RSean.Size Then M= RSean.Get(i) end if next showing 15 records has solved the problem of txtfield Thanks Erel
romario87027 Active Member Licensed User Longtime User Jan 29, 2014 #6 I would like to help Erel...What if I do not type like a list? Code: Copy Dim listarticoli As ResultSet listarticoli = Main.SQL1.ExecQuery(" Select * FROM Articoli Where " & filtro ) prova(listarticoli) This is not good Code: Copy sub prova(RSean As List) Dim M As Map Dim i As Int i = (pagCorrente * 15 ) -15 For i = i To i + 15 If i<= RSean.Size Then M= RSean.Get(i) end if next end sub Can you suggest how can I do? Upvote 0
I would like to help Erel...What if I do not type like a list? Code: Copy Dim listarticoli As ResultSet listarticoli = Main.SQL1.ExecQuery(" Select * FROM Articoli Where " & filtro ) prova(listarticoli) This is not good Code: Copy sub prova(RSean As List) Dim M As Map Dim i As Int i = (pagCorrente * 15 ) -15 For i = i To i + 15 If i<= RSean.Size Then M= RSean.Get(i) end if next end sub Can you suggest how can I do?
Erel B4X founder Staff member Licensed User Longtime User Jan 29, 2014 #7 I think that you want to do something like: Code: Copy Sub prova(rs As ResultSet) Dim index As Int = 0 Do While index < pagCorrente * 14 AND rs.NextRow = True index = index + 1 Loop Do While index < pagCorrente * 15 AND rs.NextRow = True index = index + 1 'work with row Loop End Sub Upvote 0
I think that you want to do something like: Code: Copy Sub prova(rs As ResultSet) Dim index As Int = 0 Do While index < pagCorrente * 14 AND rs.NextRow = True index = index + 1 Loop Do While index < pagCorrente * 15 AND rs.NextRow = True index = index + 1 'work with row Loop End Sub
romario87027 Active Member Licensed User Longtime User Jan 29, 2014 #8 thank you very much!! Upvote 0