cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
simopod
Level I

Set File List with a variable during Multiple File Import

I'm using JMP 18.0.1 and I noticed the new option for Multiple File Import that allows the user to provide a list files (or directories) to import.

 

I can successfully use it in a script like so:

 

Multiple File Import(
	<<Set Use File List( 1 ),
	<<Set File List( { "C:\file1.csv", "C:\file2.csv", "C:\file3.csv"  } ),
	<<Set Import Mode( "CSVData" ),
	<<Set Stack Mode( "Stack Similar" ),
) << Import Data;

 

However, when I try to move the list to a variable, so that I can add/remove elements dynamically, the import stops working.

 

 

fileList = { "C:\file1.csv", "C:\file2.csv", "C:\file3.csv"  };

Multiple File Import(
	<<Set Use File List( 1 ),
	<<Set File List( fileList ),
	<<Set Import Mode( "CSVData" ),
	<<Set Stack Mode( "Stack Similar" ),
) << Import Data;

 

There's no error, but zero tables are created. Even when I replace "Import Data" with "Create Window", I see that in the first case the list is populated, whereas it stays empty in the second case.

 

Am I missing something here? Am I trying to set this option in the wrong way?

Thanks!

 

1 REPLY 1
hogi
Level XII

Re: Set File List with a variable during Multiple File Import

this is a known bug:
https://community.jmp.com/t5/JMP-Wish-List/Advanced-syntax-highlighting-in-JSL-Editor-does-the-funct... 

Reply from JMP support (TS - 00152969);
I've spoken with Development about the issue. The issue is a defect and I have reported it to Development so it can be resolved in a future JMP version.

 

Advanced syntax highlighting in JSL Editor - does the function evaluate it's argument?  could help to find out to which level an argument is evaluated and if Eval is needed or a more complex structure like Substitute (Expr(), ...) or Eval(Eval Expr(.... Expr(arg).... ))  - like in this case.

 

Besides advanced syntax highlighting - for arguments where such a complex structure is mandatory, JSL Editor could directly show a warning that this syntax is missing. Same for cases where Eval (arg) is needed.

 

Scripters, please give the wish a Kudo!
Expression handling in JSL will be fun once the new functionality is available.