S strupp01 Active Member Licensed User Longtime User Jul 25, 2017 #1 I want to copy the data from a table view into another table view. For this I wanted to use the following command: B4X: TableView2.Items.Add(TableView1.Items.Get(i)) Unfortunately, this command deletes the data in the first TableView, which I do not want. Why ? I have added testfile. Attachments Test1.zip 263.1 KB · Views: 176
I want to copy the data from a table view into another table view. For this I wanted to use the following command: B4X: TableView2.Items.Add(TableView1.Items.Get(i)) Unfortunately, this command deletes the data in the first TableView, which I do not want. Why ? I have added testfile.
Erel B4X founder Staff member Licensed User Longtime User Jul 25, 2017 #2 You are moving the labels from one TableView to another. You need to instead use GetCellValue (https://www.b4x.com/android/forum/threads/35542) sub to get the actual value and then call CreateRow with the array of values. Upvote 0
You are moving the labels from one TableView to another. You need to instead use GetCellValue (https://www.b4x.com/android/forum/threads/35542) sub to get the actual value and then call CreateRow with the array of values.
S strupp01 Active Member Licensed User Longtime User Jul 25, 2017 #3 OK. thats how it works. Upvote 0