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.
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
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