Überblick
Dieses Beispiel zeigt, wie Sie eine ComboBox dynamisch mit Optionen füllen können, die für eine Benutzerauswahl in einer vorherigen ListBox relevant sind.
Anweisungen
Klicken Sie in einer JMP®-Sitzung auf das Menü Datei und wählen Sie Neu ► Skript . Kopieren Sie das folgende Skript und fügen Sie es in das Skriptfenster ein. Um das Beispielskript auszuführen, klicken Sie auf das Menü Bearbeiten und wählen Sie Skript ausführen .
/* 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>