Text Search - Capturing Settings
I am using the new Text Search capabilities (quite nice!)
What I'd like to be able to do is capture the elements in
TextSearchSettings, and save them to my database.
I have an event that is called OnPreviewFormClose.
However, when I look at the TextSearchSettings (DefaultString for example),
it contains the original values, not the changed values.
What I'd like to do is when someone changes the values (WholeWord,
DefaultString), I'd like to store them for the next run of the report.
However, no matter what the user changes, all I see OnPreviewFormClose is
the original values.
Is there any way around this?
Joe
What I'd like to be able to do is capture the elements in
TextSearchSettings, and save them to my database.
I have an event that is called OnPreviewFormClose.
However, when I look at the TextSearchSettings (DefaultString for example),
it contains the original values, not the changed values.
What I'd like to do is when someone changes the values (WholeWord,
DefaultString), I'd like to store them for the next run of the report.
However, no matter what the user changes, all I see OnPreviewFormClose is
the original values.
Is there any way around this?
Joe
This discussion has been closed.
Comments
How are you giving your users the ability to change the TextSearchSettings?
If you are using the TppDesigner, the OnPreviewFormClose will not fire when
it is closed. In my testing, when I loaded a report in the designer at
runtime, changed the TextSearchSettings, closed the designer, then loaded
the same report in the print preview and closed that form, the settings were
equal to the changed values. Let me know if I'm misunderstanding the issue.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
user has done (via right click).
I call TppReport.OnPreviewFormClose. Within that event, the
TppReport.TextSearchSettings are the original settings, not those modified
by the user.
Do you have an example of what worked for you?
Thanks