Am a updating tableView content by
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?
This is portion of the code ...here tableView adds 'allRunningContest' but not 'transaction' It simply not comes
B4X:
TableView1.AddSingleLine("fdg")
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