There were two things that were fixed with Start Over for CCB in JMP 18. In the script below, after you Start Over:
- The Graph Builder report disappears
- The ccb variable is no longer valid
Item (2) can be important to scripters, and is generally guaranteed when a platform is rerun due to Data Filters, Column Switchers, or Platform Presets. With By Groups the situation is a little unusual - and the issue that you point out has been fixed for the upcoming JMP 18.1. If you add the By role in CCB, the ccb variable changes from the Control Chart Builder[] to a Group Platform[], and when you Start Over it changes back.
dt = Open( "$SAMPLE_DATA/Quality Control/Coating.jmp" );
New Window("custom report",
HListBox(
ccb = dt << Control Chart Builder(
Show Limit Summaries( 0 ),
Variables( Subgroup( :Sample ), Y( :Weight ) )
),
gb = Graph Builder(
Size( 528, 456 ),
Show Control Panel( 0 ),
Variables( X( :Sample ), Y( :Weight ) ),
Elements( Box Plot( X, Y, Legend( 14 ) ) )
)
)
);