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-777335%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EJMP%2018%20JSL%20no%20puede%20agregar%20especificaciones%20a%20la%20propiedad%20de%20la%20columna%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777335%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHola%2C%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EMi%20jsl%20para%20agregar%20especificaciones%20a%20las%20propiedades%20de%20la%20columna%20fall%C3%B3%20en%20el%20nuevo%20JMP%2018.%20Lo%20he%20estado%20usando%20con%20%C3%A9xito%20en%20JMP%2017.%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EEval(%0A%09Eval%20Expr(%0A%09%09dt%3A(collist%5Bi%5D)%0A%09%09%09%26lt%3B%26lt%3B%20Set%20Property(%22Spec%20Limits%22%2C%20%7BLSL(Expr(LSL))%2C%20USL(Expr(USL))%2C%20Target(Expr(TARGET))%2C%20Show%20Limits(Expr(Show_Limit))%7D)%0A%09%09%09%26lt%3B%26lt%3B%20Set%20Property(%22Units%22%2CExpr(UNITS))%0A%09)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3ELa%20propiedad%20%22L%C3%ADmites%20de%20especificaci%C3%B3n%22%20se%20muestra%20en%20la%20columna%20pero%20no%20hay%20ning%C3%BAn%20valor%20(USL%2C%20LSL%2C%20Target)%20dentro.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EEspero%20que%20alguien%20pueda%20ayudar.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EGracias.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-777335%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EAutomatizaci%C3%B3n%20y%20secuencias%20de%20comandos%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-777345%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20JMP%2018%20JSL%20no%20puede%20agregar%20especificaciones%20a%20la%20propiedad%20de%20la%20columna%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777345%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EEs%20muy%20dif%C3%ADcil%20decirlo%20sin%20ver%20el%20c%C3%B3digo%20completo%20o%20cualquiera%20de%20los%20datos.%20%C2%BFSon%20n%C3%BAmeros%20LSL%20y%20USL%3F%20Este%20ejemplo%20funciona%20en%20JMP18.0.0%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(1)%3B%0A%0ALSL%20%3D%201%3B%0AUSL%20%3D%203%3B%0ATARGET%20%3D%202%3B%0AShow_Limit%20%3D%201%3B%0AUNITS%20%3D%20%22m%22%3B%0A%0Adt%20%3D%20Open(%22%24SAMPLE_DATA%2FBig%20Class.jmp%22)%3B%0A%0Acollist%20%3D%20%7B%3Aheight%2C%20%3Aweight%7D%3B%0Ai%20%3D%201%3B%0A%0AEval(%0A%09Eval%20Expr(%0A%09%09dt%3A(collist%5Bi%5D)%0A%09%09%09%26lt%3B%26lt%3B%20Set%20Property(%22Spec%20Limits%22%2C%20%7BLSL(Expr(LSL))%2C%20USL(Expr(USL))%2C%20Target(Expr(TARGET))%2C%20Show%20Limits(Expr(Show_Limit))%7D)%0A%09%09%09%26lt%3B%26lt%3B%20Set%20Property(%22Units%22%2CExpr(UNITS))%0A%09)%0A)%3B%0A%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-777347%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20JMP%2018%20JSL%20no%20puede%20agregar%20especificaciones%20a%20la%20propiedad%20de%20la%20columna%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777347%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EEjecut%C3%A9%20su%20JSL%20sin%20problemas%20usando%20JMP%2018.1%20en%20Windows%2011.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22txnelson_0-1722314454829.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_0-1722314454829.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_0-1722314454829.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F66592i3D80919B62CCD1F6%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22txnelson_0-1722314454829.png%22%20alt%3D%22txnelson_0-1722314454829.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0Adt%20%3D%20%0A%2F%2F%20Open%20Data%20Table%3A%20Big%20Class.jmp%0A%2F%2F%20%E2%86%92%20Data%20Table(%20%22Big%20Class%22%20)%0AOpen(%20%22%24SAMPLE_DATA%2FBig%20Class.jmp%22%20)%3B%0ALSL%20%3D%2044%3B%0Atarget%20%3D%2055%3B%0AUSL%20%3D%2066%3B%0Ashow_limit%20%3D%201%3B%0AUnits%20%3D%20%22LBS%22%3B%0AcolList%20%3D%20dt%20%26lt%3B%26lt%3B%20get%20column%20names(string%2Ccontinuous)%3B%0Ai%3D1%3B%0A%0AEval(%0A%09Eval%20Expr(%0A%09%09dt%3A(collist%5Bi%5D)%20%26lt%3B%26lt%3B%20Set%20Property(%0A%09%09%09%22Spec%20Limits%22%2C%0A%09%09%09%7BLSL(%20Expr(%20LSL%20)%20)%2C%20USL(%20Expr(%20USL%20)%20)%2C%20Target(%20Expr(%20TARGET%20)%20)%2C%20Show%20Limits(%20Expr(%20Show_Limit%20)%20)%7D%0A%09%09)%20%26lt%3B%26lt%3B%20Set%20Property(%20%22Units%22%2C%20Expr(%20UNITS%20)%20)%0A%09)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%C2%BFHay%20alg%C3%BAn%20mensaje%20en%20el%20registro%20JMP%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-777362%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20JMP%2018%20JSL%20no%20puede%20agregar%20especificaciones%20a%20la%20propiedad%20de%20la%20columna%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777362%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDescubr%C3%AD%20mi%20error.%20Hay%20alg%C3%BAn%20car%C3%A1cter%20dentro%20de%20las%20columnas%20USL%2FLSL%2FTarget%20del%20archivo%20de%20especificaciones%20que%20estrope%C3%B3%20el%20tipo%20de%20datos.%20Me%20asegur%C3%A9%20de%20que%20las%20columnas%20USL%2FLSL%2FTarget%20sean%20num%C3%A9ricas%2Fcontinuas%20y%20ahora%20funciona%20bien.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EGracias%20a%20todos%20por%20comprobarlo.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
dntt
Level I

JMP 18 JSL cannot add spec to column property

Hi,

 

My jsl to add spec to column properties failed on the new JMP 18. I've been using it successfully on JMP 17.

Eval(
	Eval Expr(
		dt:(collist[i])
			<< Set Property("Spec Limits", {LSL(Expr(LSL)), USL(Expr(USL)), Target(Expr(TARGET)), Show Limits(Expr(Show_Limit))})
			<< Set Property("Units",Expr(UNITS))
	)
);

The "Spec Limits" property shown up in the column but there is no value (USL, LSL, Target) inside.

 

Hope someone can help.

 

Thank you.

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
jthi
Super User

Re: JMP 18 JSL cannot add spec to column property

Very difficult to say without seeing the whole code or any of the data. Are LSL and USL numbers? This example works in JMP18.0.0

Names Default To Here(1);

LSL = 1;
USL = 3;
TARGET = 2;
Show_Limit = 1;
UNITS = "m";

dt = Open("$SAMPLE_DATA/Big Class.jmp");

collist = {:height, :weight};
i = 1;

Eval(
	Eval Expr(
		dt:(collist[i])
			<< Set Property("Spec Limits", {LSL(Expr(LSL)), USL(Expr(USL)), Target(Expr(TARGET)), Show Limits(Expr(Show_Limit))})
			<< Set Property("Units",Expr(UNITS))
	)
);
-Jarmo

View solution in original post

txnelson
Super User

Re: JMP 18 JSL cannot add spec to column property

I ran your JSL without issue using JMP 18.1 on Windows 11.

txnelson_0-1722314454829.png

Names Default To Here( 1 );
dt = 
// Open Data Table: Big Class.jmp
// → Data Table( "Big Class" )
Open( "$SAMPLE_DATA/Big Class.jmp" );
LSL = 44;
target = 55;
USL = 66;
show_limit = 1;
Units = "LBS";
colList = dt << get column names(string,continuous);
i=1;

Eval(
	Eval Expr(
		dt:(collist[i]) << Set Property(
			"Spec Limits",
			{LSL( Expr( LSL ) ), USL( Expr( USL ) ), Target( Expr( TARGET ) ), Show Limits( Expr( Show_Limit ) )}
		) << Set Property( "Units", Expr( UNITS ) )
	)
);

Are there any messages in the JMP Log?

Jim

View solution in original post

3 REPLIES 3
jthi
Super User

Re: JMP 18 JSL cannot add spec to column property

Very difficult to say without seeing the whole code or any of the data. Are LSL and USL numbers? This example works in JMP18.0.0

Names Default To Here(1);

LSL = 1;
USL = 3;
TARGET = 2;
Show_Limit = 1;
UNITS = "m";

dt = Open("$SAMPLE_DATA/Big Class.jmp");

collist = {:height, :weight};
i = 1;

Eval(
	Eval Expr(
		dt:(collist[i])
			<< Set Property("Spec Limits", {LSL(Expr(LSL)), USL(Expr(USL)), Target(Expr(TARGET)), Show Limits(Expr(Show_Limit))})
			<< Set Property("Units",Expr(UNITS))
	)
);
-Jarmo
txnelson
Super User

Re: JMP 18 JSL cannot add spec to column property

I ran your JSL without issue using JMP 18.1 on Windows 11.

txnelson_0-1722314454829.png

Names Default To Here( 1 );
dt = 
// Open Data Table: Big Class.jmp
// → Data Table( "Big Class" )
Open( "$SAMPLE_DATA/Big Class.jmp" );
LSL = 44;
target = 55;
USL = 66;
show_limit = 1;
Units = "LBS";
colList = dt << get column names(string,continuous);
i=1;

Eval(
	Eval Expr(
		dt:(collist[i]) << Set Property(
			"Spec Limits",
			{LSL( Expr( LSL ) ), USL( Expr( USL ) ), Target( Expr( TARGET ) ), Show Limits( Expr( Show_Limit ) )}
		) << Set Property( "Units", Expr( UNITS ) )
	)
);

Are there any messages in the JMP Log?

Jim
dntt
Level I

Re: JMP 18 JSL cannot add spec to column property

I figured out my mistake. There is some character inside the USL/LSL/Target columns of the spec file that messed up the datatype. I made sure USL/LSL/Target columns to be numeric/continuous and it works fine now.

 

Thanks all for checking.