Descripción general
Este ejemplo demuestra cómo se puede rellenar dinámicamente un ComboBox con opciones que son relevantes para una selección del usuario realizada en un ListBox anterior.
Instrucciones
En una sesión de JMP®, haga clic en el menú Archivo y seleccione Nuevo ► Script . Copie el script que aparece a continuación y péguelo en la ventana de script. Para ejecutar el script de muestra, haga clic en el menú Editar y seleccione Ejecutar script .
/* 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>