Android Question Show HTMLTable in Webview at record X? [SOLVED]

Roger Daley

Well-Known Member
Licensed User
Longtime User
Hi All

This is a rephrase of a previous question as I struggle to get clear in my head what I need to ask.

I have a HTMLTable [~1000 records] displayed in a WebView using the following code. [Code lifted from B4A examples].
I want to have the table displayed showing a predetermined record. [EG Record 587]
I determine programmatically the record I wish to show and I make it CurrentIndex.

Assume CurrentIndex = 587.
The question is: How do I get the ShowTable Sub to show the CurrentIndex?

Regards Roger

NOTE: The HTMLTable in the Webview works well, I am not intending to change it to one of the many other table/list/view options.

B4X:
'***********Shows the database in a table in a WebView

Private Sub ShowTable
    Private Query As String
    Query = "SELECT SiteName As [Site Name], Longitude As [Longitude], Latitude as [Latitude] FROM sites ORDER BY UPPER(SiteName) ASC"

    '*************displays the database in a table
    wbvTable.LoadHtml(ExecuteHtml(SQL1, Query, Null, True))   
    ReadDataBaseRowIDs
End Sub
 
Top