Check for pending changes prior to close

edited November 2017 in General
I'm using a TppDesigner, and prior to letting the user close the parent
form, I'd like to prompt the user to save the current template only if
they've made changes to the template.

Is there a property on the designer or the report to indicate that
changes have been made?
Thank you,


  • edited November 2017
    Hi Steve,

    If you set the Report.SaveAsTemplate property to True, the user will be
    prompted to save the template if changes are made in the designer.

    Best Regards,

    Nico Cizik
    Digital Metaphors
  • edited November 2017
    Okay, but saving will be done to file or database directly?

    What if i just want to save some parts of the report or do some
    modifications before saving?

    Am 09.11.2017 um 18:44 schrieb Nico Cizik (Digital Metaphors):
  • edited November 2017
    Hi Carsten,

    1. The report will be saved to file or database as specified by the
    Report.Template SaveTo property (stDatabase, stFile). For the database case,
    the DatabaseSettings property contains subproperties for the bindings etc.
    For an end-user application that uses the Report Explorer, the Report
    Explorer handles everything for you.

    2. The Report.Template OnSaveStart and OnSaveEnd events can be used to
    perform custom logic.

    For more details check out the RBuilder help topic for TppTemplate class and
    its properties and events.

    Best regards,

    Nard Moseley
    Digital Metaphors

    Best regards,

    Nard Moseley
    Digital Metaphors
This discussion has been closed.