Here is a simple example that pulls a vector of data from the R&R report, and then places it into a new report. You should be able to go from here to just getting the data you need, and passing it on to the next steps in your script.
names default to here(1);
dt = open("$SAMPLE_DATA/Variability Data/Gasket.jmp");
Variability Chart(invisible,
Y( :Y ),
X( :Operator, :Part ),
Model( "Crossed" ),
Historical Sigma( 0 ),
Analysis Type( "Choose best analysis (EMS REML)" ),
Connect Cell Means( 1 ),
Show Grand Mean( 1 ),
XBar Control Limits( 1 ),
S Control Limits( 1 ),
Mean of Std Dev( 1 ),
Gauge RR( 6, 0, 0, 0 ),
Gauge RR Report( 1 )
);
rp = Current Report();
// Get the Variation data from the Output Display
VariationText = rp["Gauge R&R"][StringColBox(1)] << get;
Variation = rp["Gauge R&R"][NumberColBox(2)] << get;
// Get the Summary and Gauge R&R Statistics
Stats = rp["Gauge R&R"][NumberColBox(5)] << get;
StatsText = rp["Gauge R&R"][StringColBox(5)] << get;
// Build a new report
NW = New Window("my report",
table box(
string col box("Meas Source", variationText),
number col box("Variation", variation)
),
spacer box(0,20),
table box(
number col box("", stats), string col box("", statsText)
)
);
rp << close window;
The reading and manipulating of Display objects is documented in the Scripting Guide in the JMP Documentation Library, available under the Help pull down menu.
Jim