FNC DataBinder - Add Lookup binding

Hello, as far as you know there are few resources in FMX for lookup items. Starting to use in last month, I Saw that it's perfectly possible to implement this resource for this component. It could be able (for example) to fill a combobox items based on a dataset items, and use it's designed property for the lookup value.. very similar to data bound components presents in VCL .. or a bit similar to the native FMX visual bindings that have a similar resource but limited.

It should already be possible to implement this, by binding the combobox as a list to a lookup dataset and additionally bind the ItemIndex property to the field. You can use separate datasources for this.

Even being possible, consider that by as a simplest way, is It's the proposal of DataBinder..

Can you provide a code snippet as you suggested, I wasn't able to do that.

Here is a sample, demonstrating how to setup a connection with a combobox. The data comes from a query, but it could also be another table, field...

Sample.zip (83.3 KB)

Hi, Many thanks for the sample. Have you considered if there is a lot of lookup fields? Consider that, It's a not a huge implementation for the DataBinder item. As native delphi databindings already have this resource, it really could be implemented here.

Hi,

We'll add this feature on our list and investigate/consider this in a future version.

1 Like