2

I have a combobox with the following manually entered values: Active, Inactive. However I want to save only values A or I in my database. How do I do this via livebindings?

Tallys Ferrante
  • 173
  • 1
  • 13

1 Answers1

0

FillDataSource = BindSourceDB1 FillValueFieldName = 'value' // A and I would be in this field FillDisplayFieldName = 'name' // Active and Inactive would be in this field

How to get Item.LookupData and SelectedValue (as integer) of an FMX TComboBox at runtime?

FMXExpress
  • 1,246
  • 8
  • 10
  • Thanks for the reply, however the data in my combobox does not come from a data source, I add them manually when the form is created. Using ComboBox.Items.Add (''). – Tallys Ferrante Mar 07 '17 at 11:16
  • 1
    In that case I would recommend you create a TFDMemTable and put your manual items in the TFDMemTable. Then you can bind it to the FillDataSource. – FMXExpress Mar 15 '17 at 23:25