Ciao amici,
C'è un modo per afferrare il valore della selezione utente nella casella switcher di colonne?
Il codice box switcher colonna è evidenziato in JSL qui sotto. Ho anche aggiunto un'immagine a questo messaggio per visualizzare il problema.
M2V1_dt << Bivariate(
Y( :VALUE ),
X( :Time_1 ),
Fit Where(
:SITE == "A",
Fit Spline( 0.1, Standardized, {Line Color( {213, 72, 87} )} )
),
Fit Where(
:SITE == "B",
Fit Spline( 0.1, Standardized, {Line Color( {64, 111, 223} )} )
),
<STRONG> Column Switcher( VALUE, {VALUE, VAL2} ),
Column Switcher( Time_1, {Time_1, Time_2} ),</STRONG>
SendToReport(
Dispatch(
{},
"2",
ScaleBox,
{Add Ref Line( 18, Dashed, "Dark Blue", "+0.5S", 2 ),
Add Ref Line( 9, Dashed, "Dark Blue", "-0.5S", 2 )}
),
Dispatch(
{},
"Bivar Plot",
FrameBox,
{Frame Size( 533, 205 ), Row Legend(
SITE,
Color( 1 ),
Color Theme( "JMP Default" ),
Marker( 1 ),
Marker Theme( "Standard" ),
Continuous Scale( 0 ),
Reverse Scale( 0 ),
Excluded Rows( 0 )
)}
),
Dispatch(
{},
"Smoothing Spline Fit",
OutlineBox,
{Close( 1 ), Set Title( "" )}
),
Dispatch(
{},
"Smoothing Spline Fit",
OutlineBox,
{Close( 1 ), Set Title( "" )}
)
)
);Grazie,
RB.
Tutti i messaggi che puoi interrogare sul commutatore di colonne sono documentati nell'indice di scripting.
Aiuto ==> Scripting Index ==> Column Switcher
Di seguito è riportato l'esempio dall'indice Scripting che illustra il messaggio Get Current
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Car Poll.jmp" );
obj = dt <<
Contingency( Y( :size ), X( :marital status ) );
ColumnSwitcherObject = obj <<
Column Switcher(
:marital status,
{:sex, :country, :marital status}
);
ColumnSwitcherObject << Set Current( "country" );
ColumnSwitcherObject << Get Current/*country*/ ;