Trying to create a ABMCombo to use in my Insert/Edit forms - as a lookup, populated from a DB table.
The updated table will hold the PKey to the lookup table.
Normally, the combo would have a pair of key / value.
' create combo
Dim combo1 As ABMCombo
combo1.Initialize(page, "combo1", "Select a person", 650, "")
combo1.IconName = "mdi-action-account-circle"
' add items
combo1.AddItem("combo1S1", "Mommy", BuildSimpleItem("S1", "mdi-action-account-circle", "{NBSP}{NBSP}Mom"))
The BuildSimpleItem adds a label for each item....
Here the key is "combo1S1"
Here the value is "Mommy"
How does one retrieve the key when all we have access to is the value (combo1.text)?
At a loss here, stopping my development...
When resolved, hope to turn it into a practical example.
....
I am thinking I may need to use a Map to lookup the (key/value) pair and extra
code methods to set and get the DB values...
Thanks