Re : Comment faire en sorte que JSL affiche une boîte de dialogue et attende que l'utilisateur remplisse les paramètres ?vous avez besoin de modal option.
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.Une fenêtre modale attend une réponse ; vous ne pouvez rien faire d'autre jusqu'à ce qu'il ferme.
Re : Comment faire en sorte que JSL affiche une boîte de dialogue et attende que l'utilisateur remplisse les paramètres ?Merci Craig!
Re : Comment faire en sorte que JSL affiche une boîte de dialogue et attende que l'utilisateur remplisse les paramètres ?Une zone d'édition de texte, plutôt qu'une zone d'édition numérique.

Aussi, jetez un oeil à Dialogues modaux , en particulier comment obtenir les réponses de la boîte de dialogue modale.
Re : Comment faire en sorte que JSL affiche une boîte de dialogue et attende que l'utilisateur remplisse les paramètres ?Merci les Experts !

Re : Comment faire en sorte que JSL affiche une boîte de dialogue et attende que l'utilisateur remplisse les paramètres ?pour modal, il suffit de changer l'exemple :
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'exemple dans l'index de script nécessite une petite réécriture pour être plus utile. J'ai corrigé le problème principal et ajouté des commentaires ci-dessus. Le principal problème est que la clause if dans l'exemple est une double instruction déroutante avec un point-virgule.
edit : réparer le formatage (pour une raison quelconque, le formateur de code veut gâcher la dernière instruction else)
Re : Comment faire en sorte que JSL affiche une boîte de dialogue et attende que l'utilisateur remplisse les paramètres ?Comment rendre cette opération complète possible ?
Merci les Experts !

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 )
);
Re : Comment faire en sorte que JSL affiche une boîte de dialogue et attende que l'utilisateur remplisse les paramètres ?Voici un exemple de travail.Vous devez inclure << modal, affecter une variable à la zone d'édition de texte et récupérer la valeur de la zone d'édition de texte avant que l'utilisateur ne quitte la boîte de dialogue 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 ) );Re : Comment faire en sorte que JSL affiche une boîte de dialogue et attende que l'utilisateur remplisse les paramètres ?Il existe deux approches concurrentes.
@pmroz L'exemple montre une manière d'utiliser une <
Plusieurs réponses ci-dessus, j'ai utilisé l'approche <<
Re : Comment faire en sorte que JSL affiche une boîte de dialogue et attende que l'utilisateur remplisse les paramètres ?ex=New Window("",<<MODAL></MODAL>Re : Comment faire apparaître une boîte de dialogue JSL et attendre que l'utilisateur remplisse les paramètres ?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>
Comment faire en sorte que JSL affiche une boîte de dialogue et attende que l'utilisateur remplisse les paramètres ?Comment un seul JSL peut-il faire apparaître une boîte de dialogue lors de l'exécution, et lorsque je remplis le texte, il peut lire le contenu et le transmettre à la variable et continuer à s'exécuter?
Merci!
Modélisation statistique avancéeAutomatisation et scriptOrganisation du contenu