データフィルターで項目を選択するときに「作業」を行う方法がわかりません。 条件を選択したら、スクリプトで制限テーブルに移動してから、グラフィックススクリプトに使用する式を入力します。 これは、データフィルターの「where」ステートメントに基づいて変更されます。 スクリプトでこのアクションをトリガーする方法や、別のデータフィルターの選択に変更した場合にスクリプトを削除する方法がわかりません。 スクリプト全体またはサンプルデータテーブルがないため、事前にお詫び申し上げます。 より多くの情報が必要な場合、私はいくつかを取得するために最善を尽くします。
ありがとう
// Step 1: Go to the textbox with "Where" statement
Try( test = Report( gb1_S.2 )[Text Box( 5 )] << Get Text );
graph = dt_lim << Get Rows Where( Contains( test, :SPEC_COL_NAMES ) );
// Step 2: If a condition exists, populate the following
f1 = Column( dt_lim, "StartF" )[graph][1]; // x1 for a Marker and starting point for the line
f2 = Column( dt_lim, "StartF" )[graph][2]; // x2 for a Marker and starting point for the line
s1 = (Column( dt_lim, "LSL" )[graph])[1]; // y1 (LSL) for the Line
s2 = (Column( dt_lim, "USL" )[graph])[1]; // y2 (USL) for the Line
color = "Red";
test = Expr(
graph_expr = Eval Insert(
"\[Graph_Script = Expr(
Marker Size( 6 );
Marker( Marker State( 20 ), Color State( "^color^" ), {^f1^, ^s1^}, {^f2^, ^s2^} );
Pen Color( "^color^" );
Line( {^f1^, ^s1^}, {^f2^, ^s2^} );
)]\"
);
Eval( Parse( graph_expr ) );
);
<BR /><BR />// Step 3: Execute the Graphics script<BR /><BR />Report( gb1_S.2 )[Framebox( 1 )] << Add Graphics Script( Graph_Script );フィルタの選択が変更されたときにアクションをトリガーする方法については、スクリプトインデックスからフィルタ変更ハンドラを作成するを確認してください。
スクリプトインデックスの例:
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Cities.jmp");
dist = Distribution(Automatic Recalc(1), Continuous Distribution(Column(:POP)));
filter = dist << Local Data Filter(Add Filter(columns(:Region)));
f = Function({a}, Print(a));
rs = filter << Make Filter Change Handler(f);