B4X:
Dim cur As Cursor
Dim bChkSampleTaken As Boolean=False
cur = SQLLite.SQL.ExecQuery2(SQLTransactions, Array As String(Dt))
For row = 0 To cur.RowCount - 1
cur.Position = row
sB.Append("<tr>")
'Set all the columns as clickable. Map clickable columns in WebView1_OverrideUrl
For i = 0 To cur.ColumnCount - 1
bChkSampleTaken=False
sB.Append("<td>")
If i=5 Then
If cur.GetString2(i)="X" Then
bChkSampleTaken=True
End If
End If
If bChkSampleTaken=True Then
sB.Append("<a href='http://").Append(i).Append(".")
sB.Append(row)
sB.Append(".com'>").Append("<img src='" & File.DirAssets &"/chksampletaken.jpg" & "' border=0></a>")
Else
sB.Append("<a href='http://").Append(i).Append(".")
sB.Append(row)
sB.Append(".com'>").Append(cur.GetString2(i)).Append("</a>")
End If
sB.Append("</td>")
Next
sB.Append("</tr>")
Next
sB.Append("</table>")
WebView1.LoadHtml(sB.ToString)
I added chksampletaken.jpg to the files tab. The image is not showing in release or debug mode.