Android Question WebView refresh in a TabStripViewPager

Bob Spielen

Active Member
Licensed User
Please some orientations...
I have a TabStripViewPager.
On one of the Layouts I have a WebView1.LoadHtml(DBUtils.ExecuteHtml( Starter.sql2, SQLStr, Null, 0, True)).
On other Layouts I change the Sql2 tables.
The problem is that, how can I refresh the HTML GridView when I scroll back.
I tried

B4X:
Sub TabStrip1_PageSelected (Position As Int)
    Log("*********************** TabStrip1_PageSelected()*****")
    Log($"Current page: ${Position}"$)
    If Position=4 Then
          
       AtualPed
       
.
.
.

and then

B4X:
Sub Atualped
     Dim SQLStr As String="SELECT [taborig] as Item, [sabor] as Sabor, [qtd] As qtd, [preco] as preco FROM tempped ORDER BY ordem ASC"
     WebView1.LoadHtml(DBUtils.ExecuteHtml( Starter.sql2, SQLStr, Null, 0, True))
    WebView1.ZoomEnabled=False
.
.
.

The table doesn't show the new values.

Thanks a lot for your help.
 
Top