Hi, I have a B4Xpages app; where I display data on a xCLV Card. There is a button on each card, that when pressed should open a URL based on data on that card.
The following works perfectly on B4a, and I can open the URL. But in B4i I`m getting
?? as the contents of the label, instead of 1628078985049.
Private Sub view_upload_Click
Dim index As Int = view_clv1.GetItemFromView(Sender)
Dim p As B4XView = view_clv1.GetPanel(index) 'base panel
Dim pp As B4XView = p.GetView(0) 'card panel
Log(pp.GetView(19).text)
Dim URL As String = main_page.strURL & "/uploads/" & pp.GetView(19).text & ".pdf"
I have confirmed the label on the card has the data in it (both visually and programmatically), I have confirmed the label is in the same position in the tree (i.e. position 19).
All code is within the same B4Xpage, and pages aren`t getting changed. xCLV is populated, then the button is pressed....
The attached image shows CLV card items 'logged' on the left, and the layout tree`s on the right. As you can see all objects are fine up to 'view_filename', where the text shown for B4i is actually from 'view_con9' (item 22); almost like something is shifting the index down 4 rows?
Would appreciate any guidance...
Thanks, James