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

Modify SQL Text

edited November 2005 in General
How can i modify the SQL Text of a report, not only when generating the
report data (wich i know how to do), but for once.

Like:

Before viewing the report?s SQL: SELECT * FROM CUSTOMERS
After modifications : SELECT * FROM CUSTOMERS ORDER
BY NAME

If i restart the application, and open the report, the sql text would be
'SELECT * FROM CUSTOMERS ORDER BY NAME'. So, i change the sql and keept it
for future viewing.

Is this possible?

Comments

  • edited November 2005

    1. RB 9 includes a new TdaSQLBuilder class that can be used to modify the
    TdaSQL object associated with a dataview.

    2. To make changes permanent, you need to save the report definition. If you
    are storing reports in .rtm files or a database, try calling
    Report.Template.Save.



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited November 2005
    Thank you Nard.

    It works!

This discussion has been closed.