Hi,
I think I've made some progress towards a possible solution. Take a look at this section of code:
Panel1 = Panel Box( "Column selector",
rb = Radio Box( ColList , width( 200 ), 1, cb1<<delete; Report1<<append(cb1=cbfunction(Column(rb << get selected )));
)
);
Splitter2 = V Splitter Box();
TabPage1 = Tab Page Box();
Scroll1 = Scroll Box();
Report1 = Platform(
DataTable1,
cb1=Control Chart Builder(
Size( 918, 368 ),
Show Control Panel( 0 ),
Show Excluded Region( 0 ),
Show Limit Summaries( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :Date ), Y(Column(rb << get selected )) ),
The Control Chart Builder object is called cb1. The radiobox script deletes cb1, and then appends what is returned by the function cbfuntion. The script defining that function is below:
cbfunction=Function({col},
cb=Control Chart Builder(
Size( 918, 368 ),
Show Control Panel( 0 ),
Show Excluded Region( 0 ),
Show Limit Summaries( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :Date ), Y(col) ),
Chart(
Position( 1 ),
Points( Individual Points( 1 ) ),
Limits
),
Chart( Position( 2 ) ),
SendToReport(
Dispatch(
{},
"Control Chart Builder",
FrameBox,
{DispatchSeg(
Marker Seg( 1 ),
{Marker( "Circle" )}
), DispatchSeg(
Marker Seg( 2 ),
{Color( {126, 126, 126} ),
Marker( "FilledCircle" ), Transparency( 0.8 )}
)}
),
Dispatch(
{},
"Control Chart Builder",
FrameBox( 2 ),
{DispatchSeg(
Marker Seg( 1 ),
{Marker( "Circle" )}
)}
)
)
);
Return(cb);
);
Let me know if this makes sense and if you can use it to create the required functionality.