EDIT: I discovered the issue is not with/in JMP or JSL, it's an issue with the program I was using to interface with JMP. Sorry for the confusion.
I am working on a JSL script, but currently when I run the script, all hidden data tables become un-hidden. Does anyone know of what could be causing these tables to become unhidden? Here is a simplified version of the code I'm using:
Names Default To Here(1);
data = Data Table (1);
New Column( "…",
Numeric,
Continuous,
Format( "Best", 8 ),
Formula( :… - 20 )
);
StackedData = data << Stack(
columns( :…, :…,
Source Label Column("Measurement"),
Stacked Label Column("Stacked Label"),
Number of Series (2),
Output Table ("Stacked Data")
);
Current Data Table(StackedData);
column("data") << Set Name ("ΔX");
column("data 2") << Set Name ("ΔY");
New Column( "Measurement",
Nominal,
Format( "Best", 8 ),
Formula(Concat(If(Left(:Measurement Site,3)=="…","…",Left(:Measurement Site,3)=="…","…",Left(:Measurement Site,3)=="…","…","..")) )
);
gb = Graph Builder(
Variables( X( :ΔX ), Y( :ΔY ), Wrap( :… , Order By( :…, Ascending, Order Statistic( "Mean" ) )), Overlay( :Measurement) ),
Elements(
Line( X, Y, Legend( 1 ), Row order( 1 ), Summary Statistic( "Mean" ) ),
Points( X, Y, Legend( 2 ))
)
);
Summarize(AllMeasurements = by(column(StackedData,"Measurement")));
For(i = 1, i <= N Items(AllMeasurements), i++,
If(Contains(AllMeasurements[i], "…"),
gb << SendToReport(
Dispatch({}, "400", ScaleBox,
{Legend Model(1, Properties(i - 1, {Line Style("dotted")}))}
)
)
)
);
For(i = 1, i <= N Items(AllMeasurements), i++,
If(Contains(AllMeasurements[i], ".."),
gb << SendToReport(
Dispatch({}, "400", ScaleBox,
{Legend Model(1, Properties(i - 1, {Line Style("DashDotDot")}))}
)
)
)
);
For( i = 1, i <= N Items( AllMeasurements ), i++,
If( Contains( AllMeasurements[i], "…" ),
gb << SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model( 1, Properties( i - 1, {Line Color( 5 )} ) )}
)
)
)
);
For( i = 1, i <= N Items( AllMeasurements ), i++,
If( Contains( AllMeasurements[i], "target" ),
gb << SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model( 1, Properties( i - 1, {Line Color( 0 )} ) )}
)
)
)
);
StackedData << show window(0);
data << show window(0);
Message was edited by: Mark Schwab