Android Question B4XTable add four button in the edit column

mike1967

Active Member
Licensed User
Longtime User
Hello, I'm trying to insert four buttons in the edit column of a B4XTable, but the fourth button is not displayed, always and only three buttons (edit, delete, duplicate). I would like to add a View button. Is there anyone who can show me how, if possible? Thank you in advance.
 
I'm trying to insert four buttons in the edit column of a B4XTable, but the fourth button is not displayed
Here it is:
Code: Copy
Private Sub B4XTable1_DataUpdated
    For i = 0 To B4XTable1.VisibleRowIds.Size - 1
        Dim p As B4XView = editCol.CellsLayouts.Get(i + 1)
        p.GetView(1).Visible = B4XTable1.VisibleRowIds.Get(i) > 0
        p.GetView(2).Visible = p.GetView(1).Visible
        p.GetView(3).Visible = p.GetView(1).Visible        
        p.GetView(4).Visible = p.GetView(1).Visible    'need to add this line if you want 4 buttons
    Next
End Sub
 
Upvote 0
Here it is:
Code: Copy
Private Sub B4XTable1_DataUpdated
    For i = 0 To B4XTable1.VisibleRowIds.Size - 1
        Dim p As B4XView = editCol.CellsLayouts.Get(i + 1)
        p.GetView(1).Visible = B4XTable1.VisibleRowIds.Get(i) > 0
        p.GetView(2).Visible = p.GetView(1).Visible
        p.GetView(3).Visible = p.GetView(1).Visible       
        p.GetView(4).Visible = p.GetView(1).Visible    'need to add this line if you want 4 buttons
    Next
End Sub
very thanks
 
Upvote 0
Back
Top