Android Question Get TextFieldAdvanced contants from inside a CLV

james_sgp

Active Member
Licensed User
Longtime User
I have a xCLV, with multiple TextFieldAdvanced fields; that I`m using for data entry.

But I need to get the 'textfield.text' contents from each of them; so I can save the data into a db. I`m stepping through each card on the CLV to grab data using the code below, but I can`t figure how to get the content from the TFA using the 'getview' function...

B4X:
Dim sb As StringBuilder
sb.Initialize

For index = 0 To clv1.Size - 1
        Dim pnl As Panel = clv1.GetPanel(index)
        Dim pp As B4XView = pnl.GetView(0)     'card panel
                
        sb.Append(pp.GetView(2).text)) <----????


Thanks for any help...
James
 

Alexander Stolte

Expert
Licensed User
Longtime User
Have a look at this tutorial:
 
Upvote 1
Cookies are required to use this site. You must accept them to continue using the site. Learn more…