B4J Question [XUI] Parsing the ComboBox as B4XView, is it by design that .value its left out?

Mashiane

Expert
Licensed User
Longtime User
Hi

I'm looping through items in the B4X CustomListView.

B4X:
Dim index As Int = lstCRUD.GetItemFromView(Sender)
    Dim pnl As B4XView = lstCRUD.GetPanel(index)
    For Each v As B4XView In pnl.GetAllViewsRecursive
        Select Case v.Tag
            Case "txtFieldName"
                nField = v.text
                nrecord.put("FieldName",v.Text)
            Case "chkEnabled"
                nrecord.Put("Enabled", jMash.iif(v.Checked=True,"1","0"))
            Case "cboComponent"
                Dim cbo As ComboBox = v
                nrecord.put("ComponentType",cbo.value)

Whilst the text and checkboxes are being parsed well to return .text and .checked, I had to define a combobox first then assign it to a B4XView for it to return my value as there is no .value property for B4XView.

Is it by design that its left out and that we have to define temporal comboboxes first to read the b4xview or perhaps my impatience? :rolleyes:

Thanks.
 
Top