DBActions not works as expected
Original Reporter info from Mantis: luigisic
-
Reporter name: Luigi
Original Reporter info from Mantis: luigisic
- Reporter name: Luigi
Description:
DBActions works only if a TDAtasource is present on TForm that contains the DBControls.
DBActions must work to any DBControls even if the TDataSources are in TDataModules.
Steps to reproduce:
Create a new application
Add a Datamodule
In Datamodule put:
- IBConnection and setting it for an existing database
- SqlTransaction and connect it to IBConnection
- SqlQuery and setting it for read a table in Database and set Active property to True;
- DataSource and setting it to connect to SQLQuery
- ActionList with any TDBActions (DatasetFirst, DatasetPrior, ...)
in TForm put:
- Tollbar with any buttons to connect to the respective DBActions in ActionList on Datamodule;
- any DBEdits connected to the Fields of SQLQuery and Datamodule1.Datasource1
Run Application
The DBActions not work's, if I put a DataSource connected with SQLQuery in datamodule (even not connected with the DBControls on TForm the DBActions Work's
Additional information:
I attach two examples, first non works as expected, last works. Decompress the file attached.
Mantis conversion info:
- Mantis ID: 25441
- OS: Win XP
- Build: 43359
- Version: 1.2.0RC1