Fieldname list empty in (e.g.) a TColumn if the datasource.dataset is not or has not been active
Original Reporter info from Mantis: TWhyman
-
Reporter name: Tony Whyman
Original Reporter info from Mantis: TWhyman
- Reporter name: Tony Whyman
Description:
Unlike the Columns Editor, the TFieldProperty editor does not update the dataset's fieldDefs before accessing them. If the dataset has never been activated then the probability is that the FieldDefs are empty and need to be updated
a call to DataSet.FieldDefs.Update; needs to be added to procedure LoadDataSourceFields.
See attached patch
Mantis conversion info:
- Mantis ID: 26492
- OS: linux
- OS Build: 3.2.0-61-generic
- Platform: amd64
- Version: 1.2.4
- Fixed in version: 1.5 (SVN)
- Fixed in revision: 48139 (#b03737cc)
- Target version: 1.4