When using the Data Dictionary component during design, there are methods to "generate" and "syncronize". Are there methods in code to use at runtime, or do you need to use the AppendTableRecord and AppendFieldRecord methods?
Unfortunately there is no built in way to syncronize or generate all the fields and tables automatically at runtime. As a workaround, take a look at the example below on how to show the DataDictionary dialog at runtime. Then take a look at the TdaDDFieldPage.SynchronizeItems and TdaDDTablePage.SynchronizeItems methods. This is the code ReportBuilder uses in the DataDictionary Builder to syncronize the fields and tables and may help get you on the right track.
Comments
called at runtime, how do you remove tables and fields?
Thank you.
Unfortunately there is no built in way to syncronize or generate all the
fields and tables automatically at runtime. As a workaround, take a look at
the example below on how to show the DataDictionary dialog at runtime. Then
take a look at the TdaDDFieldPage.SynchronizeItems and
TdaDDTablePage.SynchronizeItems methods. This is the code ReportBuilder
uses in the DataDictionary Builder to syncronize the fields and tables and
may help get you on the right track.
www.digital-metaphors.com/tips/DataDictionaryBuilderAtRunTime.zip
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com