cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
%3CLINGO-SUB%20id%3D%22lingo-sub-776848%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELegen%20Sie%20beim%20Importieren%20mehrerer%20Dateien%20die%20Dateiliste%20mit%20einer%20Variablen%20fest%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-776848%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIch%20verwende%20JMP%2018.0.1%20und%20mir%20ist%20die%20neue%20Option%20zum%20Importieren%20mehrerer%20Dateien%20aufgefallen%2C%20mit%20der%20der%20Benutzer%20eine%20Liste%20mit%20zu%20importierenden%20Dateien%20(oder%20Verzeichnissen)%20bereitstellen%20kann.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EIch%20kann%20es%20erfolgreich%20in%20einem%20Skript%20wie%20diesem%20verwenden%3A%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EMultiple%20File%20Import(%0A%09%26lt%3B%3CSET%20use%3D%22%22%20file%3D%22%22%20list%3D%22%22%3E%3C%2FSET%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%20%3C%2FCODE%3E%3C%2FP%3E%3CP%3E%3CCODE%20class%3D%22%20language-jsl%22%3EHowever%2C%20when%20I%20try%20to%20move%20the%20list%20to%20a%20variable%2C%20so%20that%20I%20can%20add%2Fremove%20elements%20dynamically%2C%20the%20import%20stops%20working.%3C%2FCODE%3E%3C%2FP%3E%3CP%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%20%3C%2FCODE%3E%3C%2FP%3E%3CP%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%20%3C%2FCODE%3E%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%3CCODE%20class%3D%22%20language-jsl%22%3EfileList%20%3D%20%7B%20%22C%3A%5Cfile1.csv%22%2C%20%22C%3A%5Cfile2.csv%22%2C%20%22C%3A%5Cfile3.csv%22%20%20%7D%3B%0A%0AMultiple%20File%20Import(%0A%09%26lt%3B%3CSET%20use%3D%22%22%20file%3D%22%22%20list%3D%22%22%3E%3C%2FSET%3E%3C%2FCODE%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%20%3C%2FCODE%3E%3C%2FCODE%3E%3C%2FP%3E%3CP%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%3CCODE%20class%3D%22%20language-jsl%22%3EThere's%20no%20error%2C%20but%20zero%20tables%20are%20created.%20Even%20when%20I%20replace%20%22Import%20Data%22%20with%20%22%3CSPAN%3EFenster%20erstellen%E2%80%9C%20sehe%20ich%2C%20dass%20im%20ersten%20Fall%20die%20Liste%20gef%C3%BCllt%20wird%2C%20w%C3%A4hrend%20sie%20im%20zweiten%20Fall%20leer%20bleibt.%3C%2FSPAN%3E%3C%2FCODE%3E%3C%2FCODE%3E%3C%2FP%3E%3CP%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%20%3C%2FCODE%3E%3C%2FCODE%3E%3C%2FP%3E%3CP%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%3CSPAN%3E%C3%9Cbersehe%20ich%20hier%20etwas%3F%20Versuche%20ich%2C%20diese%20Option%20falsch%20einzustellen%3F%3C%2FSPAN%3E%3C%2FCODE%3E%3C%2FCODE%3E%3C%2FP%3E%3CP%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%3CSPAN%3EDanke!%3C%2FSPAN%3E%3C%2FCODE%3E%3C%2FCODE%3E%3C%2FP%3E%3CP%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%20%3C%2FCODE%3E%3C%2FCODE%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%3CLINGO-LABS%20id%3D%22lingo-labs-776848%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EAutomatisierung%20und%20Skripting%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3C%2FCODE%3E%3C%2FCODE%3E%3CLINGO-SUB%20id%3D%22lingo-sub-776878%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EBetreff%3A%20Dateiliste%20mit%20einer%20Variablen%20beim%20Importieren%20mehrerer%20Dateien%20festlegen%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-776878%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDies%20ist%20ein%20bekannter%20Fehler%3A%3CBR%20%2F%3E%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FJMP-Wish-List%2FAdvanced-syntax-highlighting-in-JSL-Editor-does-the-function%2Fidc-p%2F772428%2Fhighlight%2Ftrue%23M5779%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.jmp.com%2Ft5%2FJMP-Wish-List%2FAdvanced-syntax-highlighting-in-JSL-Editor-does-the-function%2Fidc-p%2F772428%2Fhighlight%2Ftrue%23M5779%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%20Antwort%20vom%20JMP-Support%20(TS%20%E2%80%93%2000152969)%3B%3CBR%20%2F%3E%20%3CEM%3EIch%20habe%20mit%20der%20Entwicklungsabteilung%20%C3%BCber%20das%20Problem%20gesprochen.%20Es%20handelt%20sich%20um%20einen%20Defekt%20und%20ich%20habe%20es%20der%20Entwicklungsabteilung%20gemeldet%2C%20damit%20es%20in%20einer%20zuk%C3%BCnftigen%20JMP-Version%20behoben%20werden%20kann.%3C%2FEM%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FJMP-Wish-List%2FAdvanced-syntax-highlighting-in-JSL-Editor-does-the-function%2Fm-p%2F729460%23U729460%22%20class%3D%22lia-mention-container-editor-message%20lia-img-icon-idea-thread%20lia-fa-icon%20lia-fa-idea%20lia-fa-thread%20lia-fa%22%20target%3D%22_blank%22%3EErweiterte%20Syntaxhervorhebung%20im%20JSL-Editor%20%E2%80%93%20wertet%20die%20Funktion%20ihr%20Argument%20aus%3F%3C%2FA%3E%20k%C3%B6nnte%20helfen%2C%20herauszufinden%2C%20auf%20welcher%20Ebene%20ein%20Argument%20ausgewertet%20wird%20und%20ob%20Eval%20oder%20eine%20komplexere%20Struktur%20wie%20Substitute%20(Expr()%2C%20...)%20oder%20Eval(Eval%20Expr(....%20Expr(arg)....%20))%20erforderlich%20ist%20%E2%80%93%20wie%20in%20diesem%20Fall.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3ENeben%20der%20erweiterten%20Syntaxhervorhebung%20k%C3%B6nnte%20der%20JSL-Editor%20bei%20Argumenten%2C%20bei%20denen%20eine%20solch%20komplexe%20Struktur%20obligatorisch%20ist%2C%20direkt%20eine%20Warnung%20anzeigen%2C%20dass%20diese%20Syntax%20fehlt.%20Gleiches%20gilt%20f%C3%BCr%20F%C3%A4lle%2C%20in%20denen%20Eval%20(arg)%20ben%C3%B6tigt%20wird.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3ESkriptautoren%2C%20bitte%20gebt%20dem%20Wunsch%20ein%20Kudo!%3CBR%20%2F%3E%20Die%20Ausdrucksbehandlung%20in%20JSL%20wird%20%3CU%3E%3CSTRONG%3ESpa%C3%9F%3C%2FSTRONG%3E%3C%2FU%3E%20machen%2C%20sobald%20die%20neue%20Funktionalit%C3%A4t%20verf%C3%BCgbar%20ist.%3C%2FP%3E%3C%2FLINGO-BODY%3E
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.