TMSFNCDataBinder with BindType dbbtList -> Current Record

Hello Dear TMS-Team

Is there a way to get the corresponding Record for a TTMSFNCDataBinderItem when it´s bound for example to TTMSFNCComboBox.Items with TBindType.dbbtList?

I´ve tried getting the record via the TTMSFNCDataBinderItem.DataLink but this doesn´t seem to be updated when the selection in the TTMSFNCComboBox changes.

Hi,

The TMSFNCDataBinder is actually a read-only type of binding. It loads the values from the dataset and assigns them to the properties retrieved from the bound control, it does not keep track of the field nor the current record. We'll investigate if there are possibilities to do this.

OK, that explains why it doesn´t work. Would be a really nice addition if it was possible to somehow get the RecNo of the selected value.

Is there another control in TMS FNC which allows me to select a value via lookup or combo and get the corresponding record?

If you have an ID field, you could separately keep this in a list bound in a similar way, and then use the ID to lookup the record in the dataset.