개요
이 예제에서는 이전 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>