Ri: Come fare in modo che JSL visualizzi una finestra di dialogo e attenda che l'utente inserisca i parametri?hai bisogno del modale opzione.
A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.A modal window waits for a response; you can't do anything else until it closes.Una finestra modale attende una risposta; non puoi fare nient'altro finché non chiude.
Ri: Come fare in modo che JSL visualizzi una finestra di dialogo e attenda che l'utente inserisca i parametri?Grazie Craig!
Ri: Come fare in modo che JSL visualizzi una finestra di dialogo e attenda che l'utente inserisca i parametri?Una casella di modifica del testo, piuttosto che una casella di modifica numerica.

Inoltre, dai un'occhiata a Dialoghi modali , in particolare come ottenere le risposte dalla finestra di dialogo modale.
Ri: Come fare in modo che JSL visualizzi una finestra di dialogo e attenda che l'utente inserisca i parametri?Grazie Esperti!

Ri: Come fare in modo che JSL visualizzi una finestra di dialogo e attenda che l'utente inserisca i parametri?per modale, basta cambiare l'esempio:
ex = New Window( "Dialog() example",
<<MODAL></MODAL>// because the window is modal, the window must be closed before the following code runs
If(
ex["button"] == 1, // not canceled
// then show the value
write(ex["variable"] ), // note: variable is the name of the variable holding the text edit box<BR />// else report no selection
write("CANCEL"); // cancel button or red X was pressed
);
L'esempio nell'indice di scripting necessita di una piccola riscrittura per essere più utile. Ho risolto il problema principale e aggiunto commenti sopra. Il problema principale è che la clausola if nell'esempio è una doppia affermazione confusa con un punto e virgola.
modifica: ripara la formattazione (per qualche motivo, il formattatore del codice vuole rovinare l'istruzione else finale)
Ri: Come fare in modo che JSL visualizzi una finestra di dialogo e attenda che l'utente inserisca i parametri?Come rendere possibile questa operazione completa?
Grazie Esperti!

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
ex = New Window( "Example: Text Edit Box",
Outline Box( "Picker Example",
H List Box( Text Box( "Label:" ), Text Edit Box() )
)
);
//Wait for me to input text "JANE"
na = EvalContextBox;//??The variable automatically retrieves the filled text
dt << Select Where( :name == na );
d3 = dt << Subset(
Output Table( "tmp" ),
Selected Rows( 1 ),
selected columns( 0 )
);
Ri: Come fare in modo che JSL visualizzi una finestra di dialogo e attenda che l'utente inserisca i parametri?Ecco un esempio funzionante.È necessario includere << modale, assegnare una variabile alla casella di modifica del testo e recuperare il valore della casella di modifica del testo prima che l'utente esca dalla finestra di dialogo modale.
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
ex = New Window( "Example: Text Edit Box", << modal,
panel Box( "Picker Example",
H List Box(
Text Box( "Label:" ),
teb = Text Edit Box() ) ),
panel box("Options",
h list box(
ok_button = button box("OK", na = teb << get text),
canc_button = button box("Cancel", na = "")
)
)
);
show(na);
// Wait for me to input text "JANE"
dt << Select Where( :name == uppercase(na) );
d3 = dt << Subset( Output Table( "tmp" ), Selected Rows( 1 ), selected columns( 0 ) );Ri: Come fare in modo che JSL visualizzi una finestra di dialogo e attenda che l'utente inserisca i parametri?Ci sono due approcci concorrenti.
@pmroz L'esempio mostra un modo per utilizzare un <
Diverse risposte sopra, ho usato l'approccio <<
Ri: Come fare in modo che JSL visualizzi una finestra di dialogo e attenda che l'utente inserisca i parametri?ex=New Window("",<<MODAL></MODAL>Ri: Come fare in modo che JSL apra una finestra di dialogo e attenda che l'utente inserisca i parametri?ex=New Window("",<<MODAL></MODAL><SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-04-07_09-58-22.png" style="width: 469px;"><span class="lia-inline-image-display-wrapper" image-alt="2023-04-07_09-58-22.png" style="width: 469px;"><img src="https://us.v-cdn.net/6038925/uploads/images/51793i66A7DA8932565CE0/2023-04-07_09-58-22.png" role="button" title="2023-04-07_09-58-22.png" alt="2023-04-07_09-58-22.png" /></span></SPAN>
Come fare in modo che JSL visualizzi una finestra di dialogo e attenda che l'utente compili i parametri?Come può un singolo JSL far apparire una finestra di dialogo in fase di esecuzione e, quando inserisco il testo, può leggere il contenuto e passarlo alla variabile e continuare a funzionare?
Grazie!
Modellazione statistica avanzataAutomazione e scriptingOrganizzazione dei contenuti