How to refresh JITPipeline?
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.
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.
This discussion has been closed.
Comments
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
http://www.digital-metaphors.com
info@digital-metaphors.com
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
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
http://www.digital-metaphors.com
info@digital-metaphors.com