Hello,
I'm using the tabstrip to load many times the same layout. The views in each tab are filled with different data in code in Activity_Create
- tsMain is the tabstrip view
- The views in the layout are declared in the activity's code
- Sub ShowRecord fills the views in the page with the current record in the cursor
- This part works fine
I'd like to change a view's (textedit) text in the active tab when an action is performed, but when I do, the view that changes is the one in the last loaded page.
My question is: Can i access the views in the current tab?
Many thanks,
I'm using the tabstrip to load many times the same layout. The views in each tab are filled with different data in code in Activity_Create
- tsMain is the tabstrip view
- The views in the layout are declared in the activity's code
- Sub ShowRecord fills the views in the page with the current record in the cursor
- This part works fine
B4X:
query = "SELECT * FROM people "
cr = Starter.sql1.ExecQuery(query & Starter.applyFilter & " LIMIT 10")
For i = 0 To cr.RowCount - 1
cr.Position = i
tsMain.LoadLayout("ItemView", "")
ShowRecord(cr)
Next
I'd like to change a view's (textedit) text in the active tab when an action is performed, but when I do, the view that changes is the one in the last loaded page.
My question is: Can i access the views in the current tab?
Many thanks,