Vorrei ricevere aiuto su come inviare comandi agli elementi all'interno di un report della piattaforma, l'ho già fatto con l'aiuto del suggerimento di Xan Gregg. L'ho fatto io stesso in un altro caso quando mi è capitato di ottenere il codice corretto ma non riesco a trovare nulla che spieghi veramente come farlo ogni volta. Ho un report in uscita dalla piattaforma Time Series e desidero inviare al report un comando Salva colonne nella casella di struttura in cui viene visualizzato il primo modello. Questa casella di struttura ha una finestra a discesa. Ho provato Update Element() nonché Save Columns(1) e Save columns. La mia ipotesi è che non sto identificando correttamente la casella Contorno e non riesco a trovare informazioni su come farlo, quindi apprezzerei molto una discussione su come identificare ogni volta l'elemento corretto. In allegato è riportata una schermata della finestra del report e di seguito sono riportati i miei tentativi JSL. Qualsiasi aiuto è molto apprezzato.
dt = Current Data Table();
ts = dt << Time Series(
Y( :"Forming Line-Forming Line Speed"n ),
Input List( :Mat Length ),
Variogram( 1 ),
Transfer Function(
Order( 0, 1, 6 ),
Seasonal( 0, 0, 0, 1 ),
:Mat Length( Order( 0, 1, 0 ), Seasonal( 0, 0, 0, 1 ), Lag( 0 ) ),
Prediction Interval( 0.85 ),
Number of Forecast Periods( 6 )
),
Model Comparison Report( Select Reports( [1] ), Select Graphs( Empty() ) ),
Input Series( :Mat Length, Variogram( 0 ) ),
SendToReport(
Dispatch(
{"Time Series Forming Line-Forming Line Speed", "Model Comparison"},
"",
ScrollBox,
{Background Color( {246, 250, 254} )}
),
Dispatch(
{"Time Series Forming Line-Forming Line Speed", "Transfer Function Model (1)",
"Interactive Forecasting"},
"Time Series",
FrameBox,
{DispatchSeg( CustomStreamSeg( 2 ), {Line Color( "Red" )} ),
DispatchSeg( CustomStreamSeg( 3 ), {Line Color( "Blue" )} ),
DispatchSeg( CustomStreamSeg( 4 ), {Line Color( "Blue" )} ),
DispatchSeg( CustomStreamSeg( 5 ), {Line Color( "Blue" )} )}
)
)
);
tsr = Report( ts );
tsb = tsr( Outline Box( "Transfer Function Model (1)" ) );
tsb << Save Columns;
// tsr << Update Element(1, 1, 1, 1, 8, 1, {Save Columns}));
// tsr << Update Element(1, 1, 3, {Save Columns}));
;Di seguito sono riportate alcune opzioni che potrebbero funzionare per te (o almeno forse darti un'idea di cosa fare)
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Time Series/SeriesJ.jmp");
obj = dt << Time Series(Y(:Output CO2), Input List(:Input Gas Rate));
obj << Transfer Function(
Order(2, 0, 0),
Seasonal(0, 0, 0, 0),
:Input Gas Rate(Order(2, 0, 2), Seasonal(0, 0, 0, 0), Lag(3))
);
obj2 = obj << Transfer Function(
Order(2, 0, 0),
Seasonal(0, 0, 0, 0),
:Input Gas Rate(Order(2, 0, 2), Seasonal(0, 0, 0, 0), Lag(3)),
No Intercept(1),
Alternative Parameterization(1),
Confidence Intervals(0.99),
Number of Forecast Periods(10)
);
dt1 = obj2 << Save Columns; // using second reference
// using timeseries reference
dt2 = (Report(obj)[OutlineBox("Transfer Function Model (1)")] << get scriptable object) << Save Columns;
show(dt1, dt2);
Grazie per l'aiuto! Che funzioni! Lo apprezzo molto!
Dan