cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
%3CLINGO-SUB%20id%3D%22lingo-sub-776848%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ED%C3%A9finir%20la%20liste%20des%20fichiers%20avec%20une%20variable%20lors%20de%20l'importation%20de%20plusieurs%20fichiers%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-776848%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EJ'utilise%20JMP%2018.0.1%20et%20j'ai%20remarqu%C3%A9%20la%20nouvelle%20option%20d'importation%20de%20fichiers%20multiples%20qui%20permet%20%C3%A0%20l'utilisateur%20de%20fournir%20une%20liste%20de%20fichiers%20(ou%20de%20r%C3%A9pertoires)%20%C3%A0%20importer.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EJe%20peux%20l'utiliser%20avec%20succ%C3%A8s%20dans%20un%20script%20comme%20celui-ci%26nbsp%3B%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%3ECreate%20Window%22%2C%20je%20constate%20que%20dans%20le%20premier%20cas%20la%20liste%20est%20remplie%2C%20alors%20qu'elle%20reste%20vide%20dans%20le%20second%20cas.%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%3EEst-ce%20que%20j'ai%20r%C3%A2t%C3%A9%20quelque%20chose%3F%20Est-ce%20que%20j'essaie%20de%20d%C3%A9finir%20cette%20option%20de%20la%20mauvaise%20mani%C3%A8re%26nbsp%3B%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%3EMerci!%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%3EAutomatisation%20et%20scripts%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%3ERe%20%3A%20D%C3%A9finir%20la%20liste%20des%20fichiers%20avec%20une%20variable%20lors%20de%20l'importation%20de%20plusieurs%20fichiers%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-776878%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EC'est%20un%20bug%20connu%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%20R%C3%A9ponse%20du%20support%20JMP%20(TS%20-%2000152969)%20%3B%3CBR%20%2F%3E%20%3CEM%3EJ'ai%20parl%C3%A9%20avec%20Development%20%C3%A0%20propos%20du%20probl%C3%A8me.%20Le%20probl%C3%A8me%20est%20un%20d%C3%A9faut%20et%20je%20l'ai%20signal%C3%A9%20au%20d%C3%A9veloppement%20afin%20qu'il%20puisse%20%C3%AAtre%20r%C3%A9solu%20dans%20une%20future%20version%20de%20JMP.%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%3EMise%20en%20%C3%A9vidence%20de%20la%20syntaxe%20avanc%C3%A9e%20dans%20l'%C3%A9diteur%20JSL%26nbsp%3B%3A%20la%20fonction%20%C3%A9value-t-elle%20son%20argument%26nbsp%3B%3F%3C%2FA%3E%20pourrait%20aider%20%C3%A0%20savoir%20%C3%A0%20quel%20niveau%20un%20argument%20est%20%C3%A9valu%C3%A9%20et%20si%20Eval%20est%20n%C3%A9cessaire%20ou%20une%20structure%20plus%20complexe%20comme%20Substitute%20(Expr()%2C%20...)%20ou%20Eval(Eval%20Expr(....%20Expr(arg)...%20.%20)%20)%20-%20comme%20dans%20ce%20cas.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EOutre%20la%20coloration%20syntaxique%20avanc%C3%A9e%20-%20pour%20les%20arguments%20pour%20lesquels%20une%20structure%20aussi%20complexe%20est%20obligatoire%2C%20l'%C3%A9diteur%20JSL%20pourrait%20directement%20afficher%20un%20avertissement%20indiquant%20que%20cette%20syntaxe%20est%20manquante.%20Idem%20pour%20les%20cas%20o%C3%B9%20Eval%20(arg)%20est%20n%C3%A9cessaire.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3ESc%C3%A9naristes%2C%20veuillez%20f%C3%A9liciter%20ce%20souhait%26nbsp%3B!%3CBR%20%2F%3E%20La%20gestion%20des%20expressions%20en%20JSL%20sera%20%3CU%3E%3CSTRONG%3Eamusante%3C%2FSTRONG%3E%3C%2FU%3E%20une%20fois%20que%20la%20nouvelle%20fonctionnalit%C3%A9%20sera%20disponible.%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.