Need help to reference to a user input entry to the jslHi, I'm trying to reference back to the user input as the name filter for the MFI in my script but when I run the script it seems to run the MFI portion first before opening up the user input window. Can someone help advise what went wrong? Appreciate!
Names Default To Here(1);
win = New Window( "Set the Value",
H List Box( Text Box( "Set this value" ), num_edit_box1 = Text Edit Box( "lot" ) ),
H List Box(
Button Box( "OK",
//store results in jsl variables
num_input = num_edit_box1 << get text();
//close the window
//wait until you've unloaded the input boxes before you closing
//or else they'll be gone
win << close window;
//now do whatever work you want with the inputs
Show( num_input );
Print( num_input );
),
//a cancel button that closes the window and doesn't store store the results
Button Box( "Cancel", win << close window )
)
);
Multiple File Import(
<<SET folder=""></SET>
ScriptingRe: Need help to reference to a user input entry to the jslJMP does not stop processing when a New Window() is specified, unless it is a Modal window, or the New Window is the last code in the script.
Therefore, you have a couple of options, to correct your code.
Add < Move the MFI code into the OK Button executionRe: Need help to reference to a user input entry to the jslHi @txnelson , thanks so much for the input! Adding <
However, I now have problem referencing to the user input variable for "num_input" as the Name filter for the MFI, tried a few ways to do it but doesn't work. I'm very new to jsl, hope to get some advice.
Multiple File Import(
<<SET folder=""></SET>