Betreff: Wie bringt man JSL dazu, ein Dialogfeld zu öffnen und darauf zu warten, dass der Benutzer die Parameter ausfüllt?du brauchst die modal Möglichkeit.
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.Ein modales Fenster wartet auf eine Antwort; Sie können nichts anderes tun, bis es schließt.
Betreff: Wie bringt man JSL dazu, ein Dialogfeld zu öffnen und darauf zu warten, dass der Benutzer die Parameter ausfüllt?Danke Craige!
Betreff: Wie bringt man JSL dazu, ein Dialogfeld zu öffnen und darauf zu warten, dass der Benutzer die Parameter ausfüllt?Ein Textbearbeitungsfeld anstelle eines Zahlenbearbeitungsfelds.

Schauen Sie auch mal rein Modale Dialoge , insbesondere wie man die Antworten aus dem modalen Dialog erhält.
Betreff: Wie bringt man JSL dazu, ein Dialogfeld zu öffnen und darauf zu warten, dass der Benutzer die Parameter ausfüllt?Danke Experten!

Betreff: Wie bringt man JSL dazu, ein Dialogfeld zu öffnen und darauf zu warten, dass der Benutzer die Parameter ausfüllt?für modal ändern Sie einfach das Beispiel:
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
);
Das Beispiel im Scripting-Index muss etwas umgeschrieben werden, um nützlicher zu sein. Ich habe das Hauptproblem behoben und oben Kommentare hinzugefügt. Das Hauptproblem ist, dass die if-Klausel im Beispiel eine verwirrende Doppelanweisung mit einem Semikolon ist.
Bearbeiten: Formatierung reparieren (aus irgendeinem Grund möchte der Code-Formatierer die letzte Else-Anweisung durcheinander bringen)
Betreff: Wie bringt man JSL dazu, ein Dialogfeld zu öffnen und darauf zu warten, dass der Benutzer die Parameter ausfüllt?Wie kann diese vollständige Operation möglich gemacht werden?
Danke Experten!

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 )
);
Betreff: Wie bringt man JSL dazu, ein Dialogfeld zu öffnen und darauf zu warten, dass der Benutzer die Parameter ausfüllt?Hier ist ein funktionierendes Beispiel.Sie müssen << modal einfügen, dem Textbearbeitungsfeld eine Variable zuweisen und den Wert des Textbearbeitungsfelds abrufen, bevor der Benutzer den modalen Dialog verlässt.
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 ) );Betreff: Wie bringt man JSL dazu, ein Dialogfeld zu öffnen und darauf zu warten, dass der Benutzer die Parameter ausfüllt?Es gibt zwei konkurrierende Ansätze.
@pmroz Das Beispiel zeigt eine Möglichkeit, einen <
Bei mehreren Antworten oben habe ich den <<
Betreff: Wie bringt man JSL dazu, ein Dialogfeld zu öffnen und darauf zu warten, dass der Benutzer die Parameter ausfüllt?ex=New Window("",<<MODAL></MODAL>Betreff: Wie lässt man in JSL ein Dialogfeld öffnen und warten, bis der Benutzer die Parameter eingegeben hat?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>
Wie kann ich dafür sorgen, dass JSL ein Dialogfeld öffnet und darauf wartet, dass der Benutzer die Parameter ausfüllt?Wie kann eine einzelne JSL dazu führen, dass zur Laufzeit ein Dialogfeld angezeigt wird und wenn ich den Text eingebe, der Inhalt gelesen, an die Variable übergeben und weiter ausgeführt werden kann?
Danke!
Erweiterte statistische ModellierungAutomatisierung und SkripterstellungInhaltsorganisation