Hi all,
In my current project, I am writing a script to run several scripts already associated with a data table and then "copy+paste" each result window to a new window, with the final goal that the "new window" will contain every needed result image for a report.
For scripts that produce a proper report, this is fairly easy and can be accomplished like this:
::winOut = New Window( "Out", ::boxOut = V List Box() );
::dtMain = Current Data Table();
::boxOut << Append( Text Box( "||Variablity Chart for All Weeks" ) );
::boxOut << Append( (::dtMain << Run Script( "VarChart All weeks" )) << Report );
However, things aren't working out so easy for scripts that produce a data table (i.e., a sub-table of the main data table).
What would need to be done to append a data table to my "::winOut"? I know a command such as
::dataTable << LayOut
Will produce an "image" that matches what I want to append, but I can't figure out how to append that (or anything similar) to my ::winOut
I should note that this is my third day of scripting via JSL, so there are probably many "tricks" that I am unaware of.
As an example This is what I have so far...
::boxOut << Append( Text Box( "||Table of Averages" ) );
::dtMain << run script( "Table of Averages" );
::dtTemp = (DataTable("Table of Averages"));
::boxOut << append(???);
Close(::dtTemp);
Also, as a caveat, there are "trust issues" with modifying the existing scripts. I won't be able to alter "Table of Averages" in any way, all of this must be done outside of those existing scripts.
Thanks for the help,
-Tom