After 3 days of searching for solutions and trying almost everything, I don't want to give up on b4i.
Context:
I have a table in a Webview, the user can click on a cell and see information (this is already done for b4a and b4j).
For b4a I use this in webview, WebViewExtras:
<script>
function pulsa_cell(myDato){
B4A.CallSub('pulsa_cell',true,myDato);
}
</script>
For b4j I use this in webview, setBridge:
<script>
function pulsa_cell(myDato){
b4j.link2(myDato);
}
</script>
After 3 days of searching for solutions and trying almost everything, I don't want to give up on b4i.
Context:
I have a table in a Webview, the user can click on a cell and see information (this is already done for b4a and b4j).
For b4a I use this in webview, WebViewExtras:
<script>
function pulsa_cell(myDato){
B4A.CallSub('pulsa_cell',true,myDato);
}
</script>
For b4j I use this in webview, setBridge:
<script>
function pulsa_cell(myDato){
b4j.link2(myDato);
}
</script>
This could be more elegant, but I was 3 days late so I did it quickly...
In B4i:
Private Sub tabla_OverrideUrl (Url As String) As Boolean
Dim const IDentificador As String = "INI_B64"
If (Url.Contains(IDentificador)) Then
Dim const recortar As Int = Url.IndexOf(IDentificador) + IDentificador.Length
dim const myDato as string = Url.SubString2(recortar, Url.Length)
log(myDato) '<---Capture the parameter I want from the web view
End If
Return True
End Sub