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

Report.Modified not being set

edited January 2004 in General
Hi,

I am using 7.03. In the designer I am using the Report.Modified flag in the
OnCloseQuery to ask the user if they want to save before exiting.

This works great but if I go in and edit a report at runtime and just change
the table of a field and exit, the Modified is not set. What module is the
pull down for the DB field?

Thanks,
Joseph Gordon

Comments

  • edited January 2004
    Hi,

    I was finally able to track it down. It's in the ppDsgner unit. There is a
    routine: TppDesignerWindow.EditComboBox2Change
    which seems to be called when there is a change to the pipeline. I added
    to the bottom of this routine:

    if FReport<>nil
    then FReport.Modified:=true;

    And I also changed the routine: TppDesignerWindow.EditComboBoxChange
    in the same way since it look like it might have the same problem. I don't
    know if some other place should have been changed instead, but this seemed
    to fix it for may problem. I also don't know if there are any other places
    where
    the Report.Modified should be set but is not.

    Thanks,
    Joseph Gordon




  • edited January 2004
    Hi Joseph,

    Instead of checking the Report.Modified yourself, try setting the
    Report.SaveAsTemplate property to True on the templates you are loading.
    This will check if the report has been modified automatically and may fix
    the issue you are having.

    --
    Best Regards,

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