iOS Question TableView with httpJob error

jazzzzzzz

Active Member
Licensed User
Longtime User
Am a updating tableView content by
B4X:
TableView1.AddSingleLine("fdg")
and its working fine in every place in project....

But I try to place with same code in a job done event which was triggered from a Page_Appear and thats not working (TableView data is not added)

TableView data updation is working on the same jobdone but job was triggered from a button Click...Is this a known limitation of tableView or a tableView bug?

B4X:
Sub wallet1_Appear
    Log("Wallet Appear")
   
    tempWalletList.Initialize
   
    Main.hd.ProgressDialogShow("Fetching Details...")
    Dim j As HttpJob
    j.Initialize("transaction", Me)
    j.Download2(Main.parentURL, Array As String("action","transaction_history","access_token",Main.accessToken,"user_id",Main.userID))   
   
End Sub

Sub JobDone(Job As HttpJob)
    If Job.Success Then
        Log(Job.GetString)
        TableView1.AddSingleLine(Job.JobName)
        Select Job.JobName
            Case "allRunningContest"
               
                    Main.hd.ProgressDialogHide
                    Log(Job.GetString)
                    Dim JSON As JSONParser
                    Dim map1 As Map
                    JSON.Initialize(Job.GetString)
                    map1=JSON.NextObject
                    currentContests.Initialize
                    currentContests=map1.Get("posts")
                   
                    initialiseView
                   
            Case "transaction" 
                   
                Dim JSON As JSONParser
                Dim map1 As Map
                JSON.Initialize(Job.GetString)
                map1=JSON.NextObject

This is portion of the code ...here tableView adds 'allRunningContest' but not 'transaction' It simply not comes
 

tufanv

Expert
Licensed User
Longtime User
There is no limitation or bug in jobdone as i use tableview in many of my projects and like you I am adding lines to tableview under jobdone. Are you updating the tableview with reloadall ?
 
Upvote 0
Top