Is there a way to close a pareto plot window by referencing the window or report name? I'm creating a script that generates a pareto plot. Prior to generating the plot though, I want to close any prior instances of the plot. To do this, I'm trying the following:
dt = Current Data Table();
tablename = dt << Get Name;
Try(Close(tablename || " - Pareto Plot", NoSave)); //Attempt to close report...does not work.<BR />
pp = Pareto Plot(
Cause(dt:List of Failing Tests),
Show **bleep** Percent Curve(0), //Ha. It autobleeped the abbreviation for "Cumulative".
Category Legend(1),
By(dt:Module)
);
pp << Set Window Title(tablename||" - Pareto Plot");
Thoughts?