Hello!
If I add components to the cell, for example ABMCombo, I can not get the selected GetActiveItemId. When accessing ABMCombo.GetActiveItemId error - at com.ab.abmaterial.ABMCombo.GetActiveItemId (Unknown Source). But at the same time I can read the Tag property without errors.
Also how to receive events for components in cells?
If I add components to the cell, for example ABMCombo, I can not get the selected GetActiveItemId. When accessing ABMCombo.GetActiveItemId error - at com.ab.abmaterial.ABMCombo.GetActiveItemId (Unknown Source). But at the same time I can read the Tag property without errors.
B4X:
Sub tblUserTable_Clicked(PassedRowsAndColumns As List)
Dim tblCellInfo As ABMTableCell = PassedRowsAndColumns.Get(0)
Dim tbl As ABMTable = page.Cell(1,1).Component(tblCellInfo.TableName)
If tblCellInfo.Column = 5 Then
Dim comboCloudStorage As ABMCombo = tbl.GetComponent(tblCellInfo.Row, "comboCloudStorage")
If comboCloudStorage <> Null Then
Dim UserUid As String = tbl.GetString(tblCellInfo.Row, 0)
Dim UserLogin As String = tbl.GetString(tblCellInfo.Row, 1)
Dim intComboId As Int = comboCloudStorage.GetActiveItemId.SubString(2) 'error
End If
End If
tbl.Refresh
End Sub
Last edited: