Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Report Query LockType

edited March 2004 in General
Report Builder 7.02 (using ADO)
Delphi 5

I have a need to change to the locking mechanism that the dynamically
generated report queries use.

I would like to change them to be LockType.ltReadOnly. I don't see that this
is possible. If it isn't currently possible can I ask it as a feature
request for the next minor release of report builder.

Regards,

Paul.

Comments

  • edited March 2004
    Hi Paul,

    You can access the LockType of the TADOQuery by typecasting the DataSet of
    the QueryDataView in DADE. Below is an example of code I wrote to change
    the LockType at runtime...

    TADOQuery(daADOQueryDataView1.DataSource.DataSet).LockType := ltReadOnly;

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.