Hi
I have an issue with refreshing the CLV content after filtering records using httpjob (OkHttpUtils2 V2.91)
the updated query result won't load on the CLV cards
job1 : select all records
job2 : get records based on filters
I have an issue with refreshing the CLV content after filtering records using httpjob (OkHttpUtils2 V2.91)
the updated query result won't load on the CLV cards
job1 : select all records
job2 : get records based on filters
B4X:
If job.Success Then
Dim res As String
res = job.GetString
Dim parser As JSONParser
parser.Initialize(res)
Select job.JobName
Case "Job2" , "Job1"
Dim Dataset As List
Dataset = parser.NextArray
If Dataset.Size > 0 Then
For i = 0 To Dataset.Size - 1
Dim m As Map
m = Dataset.Get(i)
Dim Title As String = m.Get( "Title")
Dim Content As String = m.Get( "Content")
Buffer= su.DecodeBase64(m.Get("image"))
InputStream1.InitializeFromBytesArray(Buffer, 0, Buffer.Length)
Bitmap1.Initialize2(InputStream1)
InputStream1.Close
Dim Image As Bitmap = Bitmap1
CLV1.Add(CreateItem(CLV1.AsView.Width, Title, Image, Content), "")
lblTitle.Text = Title
lblContent.Text = Content
ImageView1.Bitmap=(Image)
Next
End If
End Select
End If
job.Release