Hallo Freunde,
Gibt es eine Möglichkeit, den Wert der Benutzerauswahl in der Spaltenumschaltbox abzufragen?
Der Code der Spaltenumschaltbox ist in JSL unten hervorgehoben. Ich habe dieser Nachricht auch ein Bild hinzugefügt, um das Problem zu visualisieren.
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( "" )}
)
)
);Vielen Dank,
RB.
Alle Meldungen, die Sie im Column Switcher abfragen können, sind im Scripting Index dokumentiert.
Help ==> Scripting Index ==> Spaltenumschalter
Unten finden Sie ein Beispiel aus dem Skriptindex, das die Meldung "Get Current" veranschaulicht
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*/ ;