Data Module Pallet
I have the latest Fast Reports and installed it on XE2 update 3 and 4. And when I look at the component pallet for a Form, I have 19 components. But on a data module I only have 7. The most notable missing component that I would expect to have is the TfrxDBDataSet. But the TfrxUserDataSet is also missing. Yet the TfrxDesigner and TfrxDialogControls are there, though I don't see ever using them on a data module.
Yet even the Main Demo has the TfrxDBDataset on the Data Module, how is that so? [img]style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> The same with the FastScript, where the TfsBDERTTI, TfsADORTTI, and TfsIBXRTTI are not on the data module. Also TfsScript is not there, but TfsJScript is. This is not as much an issue for me as I don't see doing scripting on the data module.[/img]
Yet even the Main Demo has the TfrxDBDataset on the Data Module, how is that so? [img]style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> The same with the FastScript, where the TfsBDERTTI, TfsADORTTI, and TfsIBXRTTI are not on the data module. Also TfsScript is not there, but TfsJScript is. This is not as much an issue for me as I don't see doing scripting on the data module.[/img]
Comments
I am also wondering why the TfrxDotMatrixExport is under "FastReport 4.0" and not "FastReport 4 Exports". Though that is not a major issue as I can easily find it via the search.
I have the same problem with my new Delphi XE2.
I cannot even cut and paste to a datamodule. It says:
Class TfrxDBDataset is not applicaple to this module.
How to get it fixed? Can I report it somewhere as a bug?
Juha
XE2 TDataModule does not allow adding of TfrxDBDataSet.
TfrxDBDataSet components can ONLY be added to TForm.
Is that correct?
If yes, what other FR components are subject to this restriction?
Embarcadero solved the problem! I made a bugreport about the issue:
- http://qc.embarcadero.com/wc/qcmain.aspx?d=106369
Tomohiro Takahashi explained how to solve it. I can verify it works.
Here :
---
Please try my steps.
1. change ClassGroup property of your DataModule from 'System.Classes.TPersistent' to 'Vcl.Controls.TControl' via ObjectInspector
2. save and reopen the unit.
3. D&D TfrxDBDataSet component onto the unit from Tool Palette
Note:
Please see help about ClassGroup property introduced in XE2.
http://docwiki.embarcadero.com/RADStudio/e..._of_TDataModule
---
And thanks Juha for letting us know here.