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

How to refresh JITPipeline?

edited June 2003 in End User
Hi,
I'm constatntly changing JITPipeline fields. But after I change JITPipeline
fields, when I'm going to Report Designer the content of the Pipeline is
still the same (old). I have to press right mouse button-->Refresh in order
to change fields that are currently showing on the new ones. Is there a way
to do it programatically?
By the way, JITPipeline closing and reopening doesn't help.

Thank you.

Comments

  • edited June 2003
    When you change the fields on the pipeline at Delphi design time, then when
    you run the app and the report, it should reflect the new fields. The JIT
    won't work at Delphi design time because the event handlers don't execute.
    Where are you finding the Refresh option?


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited June 2003
    Everything happens at runtime. I change(at runtime) JITPipeline fields. (in
    Template.OnLoadEnd or OnNew event. First - JITPipeline.FreeFields; then
    several times: DefineField(...)) After that report is loaded and for the
    fields to be shown correctly I need to point mouse on the 'Data Tree', press
    right mouse button and select option 'Refresh' (not that there are any
    others though).
    That is it. All I want is to be able to do it programmatically.

    Thanks,
    MB

  • edited June 2003
    Oh, refresh the data tree. Yes, you can call this to get the datatree
    object:

    uses
    ppIDE,
    ppToolWn,
    ppDsgner;


    procedure TmyEndUserSolution.Button1Click(Sender: TObject);
    var
    lDataTree: TppDataTreeWindow;
    begin
    ppDesigner1.Show; {just for fun}

    lDataTree :=
    TppDataTreeWindow(TppDesignerWindow(ppDesigner1.Form).ToolbarManager.FindToo
    lbar('DataTree'));

    lDataTree.Refresh;
    end;

    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited June 2003
    Thank you very much, Jim. That works great.

This discussion has been closed.