Report.Modified not being set
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
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
This discussion has been closed.
Comments
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
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com