S sigster Active Member Licensed User Longtime User Jul 11, 2020 #1 Hi how can I refresh B4XTable1 to filter from query B4X: B4XTable1.sql1.ExecQuery("select * from data where c2 = 'Open'") B4XTable1.Refresh
Hi how can I refresh B4XTable1 to filter from query B4X: B4XTable1.sql1.ExecQuery("select * from data where c2 = 'Open'") B4XTable1.Refresh
toby Well-Known Member Licensed User Longtime User Jul 11, 2020 #2 B4X: B4XTable1.ClearDataView Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jul 12, 2020 #3 The ExecQuery line doesn't do anything (except of to leak some resources). Upvote 0
M Mahares Expert Licensed User Longtime User Jul 12, 2020 #4 sigster said: B4XTable1.sql1.ExecQuery("select * from data where c2 = 'Open'") Click to expand... Your code should be something like this: B4X: B4XTable1.CreateDataView($"c2 = 'Open' "$) B4XTable1.Refresh Please note that c2 is the third in memory database table column toby said: B4XTable1.ClearDataView Click to expand... Hi Toby: I think you meant: B4XTable1.CreateDataView. The syntax wording is so similar that it it is easy to confuse between both of them. Last edited: Jul 12, 2020 Upvote 0
sigster said: B4XTable1.sql1.ExecQuery("select * from data where c2 = 'Open'") Click to expand... Your code should be something like this: B4X: B4XTable1.CreateDataView($"c2 = 'Open' "$) B4XTable1.Refresh Please note that c2 is the third in memory database table column toby said: B4XTable1.ClearDataView Click to expand... Hi Toby: I think you meant: B4XTable1.CreateDataView. The syntax wording is so similar that it it is easy to confuse between both of them.
S sigster Active Member Licensed User Longtime User Jul 12, 2020 #5 Thanks will try CreateDataView Upvote 0