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

Refresh problem in EUR-FListView

edited August 2004 in End User
Hi!

I have some export import procedures for Template files from EUR
(acctually I save them from database to file and vice versa).

When I import report (with some SQL statements) from file to DB, it is
not shown in FListView. When I close the EUR form and open it again,
imported report are there...

So how to manually refresh FListView to see any db changes? The same
question is for the trvFolders as well.

THX!

Ben

Comments

  • edited August 2004
    Benjamin Vadas wrote:
    Hi!
    Forgot to say....

    I have found a solution in MyEUR form like:

    ppReportExplorer1.ItemPipeline.Edit;
    ppReportExplorer1.ItemPipeline.Post;
    Refresh;

    but is there something else and more nice?

    THX!
  • edited August 2004

    You essentially need to refresh the dataset and the report explorer.

    1. Refresh the dataset.

    There is a DataSet.Refresh method. You could call this directly. If the
    DBPipeline has RefreshAfterPost set to true, then DataSet.Refresh is called
    after a post is made to the database, that is why your current c
    code is working.

    lDataSet := TppDBPipeline(myPipeline).DataSource.DataSet;
    lDataSet.Refresh;




    2. Refresh the report explorer UI.

    The ReportExplorer Form has a Refresh method. Looks like you are already
    calling this method. :)




    --
    Nard Moseley
    Digital Metaphors Corporation
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited August 2004
    Nard Moseley (Digital Metaphors) wrote:
    THX ... but refresh is not available under separate component (outside
    EUR form)...
    ;-)
  • edited August 2004

    True.

    But you can gain access it to it...


    For example, try this.....

    uses
    ppExpFrm;

    procedure TmyEndUserSolution.ppReportExplorer1Show(Sender: TObject);
    var
    lForm: TppReportExplorerForm;

    begin
    lForm := TppReportExplorerForm(ppReportExplorer1.Form);
    lForm.Caption := lForm.ClassName;
    end;



    --


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.