概要
この例では、以前の ListBox で行われたユーザー選択に関連するオプションを ComboBox に動的に設定する方法を示します。
説明書
JMP® セッションで、 [ファイル] メニューをクリックし、 [新規] ► [スクリプト]を選択します。以下のスクリプトをコピーして、スクリプト ウィンドウに貼り付けます。サンプル スクリプトを実行するには、 [編集]メニューをクリックし、 [スクリプトの実行]を選択します。
/* Open a sample data table */
dt = Open( "$SAMPLE_DATA\Big Class.jmp", "Invisible" );
/* Extract a list of unique ages */
Summarize( a = By( :age ) );
/* Create a modal dialog */
New Window( "Example",
<<MODAL>", 1 );
cb2 << Set Items( ageNames );
)
)
)
), /* Print the selected values from the ListBox and ComboBox in the log */
Panel Box( "Select a Name:",
cb2 = Combo Box(
{"<SELECT name="">"},
<
Additional Documentation
More information about the JMP Scripting Language can be found in the JMP Scripting Guide. You can access the guide from within JMP by clicking on the Help menu and select JMP Help. From the online Table of Contents, choose Scripting Guide.
[Previously JMP Note 54614]</SELECT></MODAL>