1

I have simple combobox linked to a firedac dataset using live binding.Live Binding

Question 1: I'm trying to get the autokey value from the dataset for the record selected in combobox, but it seems that cursor in the dataset is not changing when you select item in combobox, so this: fdmAircraftList.FieldByName('autoKey').AsString always returns autoKey of first record of dataset. How to resolve this? Isn't live binding supposed to work like previous data aware components? I'm not sure if it matters, but dataset is getting data through rest components( adapter, rest request and response).

Question 2: How to get dataset link from combobox? With dataware components, I know you can do something like this: cmbAircraft.Datasource.Dataset

Using, Delphi XE7 and this is firemonkey app.

1 Answer 1

3

Figured it out! To make sure that cursor is moving in dataset, livebinding needs to look like this: Correct Live Binding

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.