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-777335%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EJMP%2018%20JSL%20%E7%84%A1%E6%B3%95%E5%B0%87%E8%A6%8F%E7%AF%84%E6%96%B0%E5%A2%9E%E8%87%B3%E5%88%97%E5%B1%AC%E6%80%A7%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777335%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%E6%88%91%E7%9A%84%20jsl%20%E5%B0%87%E8%A6%8F%E7%AF%84%E6%96%B0%E5%A2%9E%E8%87%B3%E5%88%97%E5%B1%AC%E6%80%A7%E5%9C%A8%E6%96%B0%E7%9A%84%20JMP%2018%20%E4%B8%8A%E5%A4%B1%E6%95%97%E3%80%82%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%3E%E3%80%8C%E8%A6%8F%E6%A0%BC%E9%99%90%E5%88%B6%E3%80%8D%E5%B1%AC%E6%80%A7%E9%A1%AF%E7%A4%BA%E5%9C%A8%E6%AC%84%E4%BD%8D%E4%B8%AD%EF%BC%8C%E4%BD%86%E5%85%A7%E9%83%A8%E6%B2%92%E6%9C%89%E5%80%BC%EF%BC%88USL%E3%80%81LSL%E3%80%81%E7%9B%AE%E6%A8%99%EF%BC%89%E3%80%82%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%E5%B8%8C%E6%9C%9B%E6%9C%89%E4%BA%BA%E8%83%BD%E5%B9%AB%E5%BF%99%E3%80%82%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%E8%AC%9D%E8%AC%9D%E3%80%82%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%3E%E8%87%AA%E5%8B%95%E5%8C%96%E5%92%8C%E8%85%B3%E6%9C%AC%E7%B7%A8%E5%AF%AB%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%3E%E5%9B%9E%E8%A6%86%EF%BC%9AJMP%2018%20JSL%20%E7%84%A1%E6%B3%95%E5%B0%87%E8%A6%8F%E7%AF%84%E6%96%B0%E5%A2%9E%E8%87%B3%E5%88%97%E5%B1%AC%E6%80%A7%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777345%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%A6%82%E6%9E%9C%E6%B2%92%E6%9C%89%E7%9C%8B%E5%88%B0%E6%95%B4%E5%80%8B%E7%A8%8B%E5%BC%8F%E7%A2%BC%E6%88%96%E4%BB%BB%E4%BD%95%E6%95%B8%E6%93%9A%EF%BC%8C%E5%BE%88%E9%9B%A3%E8%AA%AA%E3%80%82%20LSL%20%E5%92%8C%20USL%20%E6%98%AF%E6%95%B8%E4%BD%8D%E5%97%8E%EF%BC%9F%E6%AD%A4%E7%AF%84%E4%BE%8B%E9%81%A9%E7%94%A8%E6%96%BC%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%3E%E5%9B%9E%E8%A6%86%EF%BC%9AJMP%2018%20JSL%20%E7%84%A1%E6%B3%95%E5%B0%87%E8%A6%8F%E7%AF%84%E6%96%B0%E5%A2%9E%E8%87%B3%E5%88%97%E5%B1%AC%E6%80%A7%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777347%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E5%9C%A8%20Windows%2011%20%E4%B8%8A%E4%BD%BF%E7%94%A8%20JMP%2018.1%20%E9%81%8B%E8%A1%8C%E6%82%A8%E7%9A%84%20JSL%EF%BC%8C%E6%B2%92%E6%9C%89%E5%87%BA%E7%8F%BE%E4%BB%BB%E4%BD%95%E5%95%8F%E9%A1%8C%E3%80%82%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%3EJMP%20%E6%97%A5%E8%AA%8C%E4%B8%AD%E6%98%AF%E5%90%A6%E6%9C%89%E4%BB%BB%E4%BD%95%E8%A8%8A%E6%81%AF%EF%BC%9F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-777362%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E8%A6%86%EF%BC%9AJMP%2018%20JSL%20%E7%84%A1%E6%B3%95%E5%B0%87%E8%A6%8F%E7%AF%84%E6%96%B0%E5%A2%9E%E8%87%B3%E5%88%97%E5%B1%AC%E6%80%A7%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777362%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E7%99%BC%E7%8F%BE%E4%BA%86%E6%88%91%E7%9A%84%E9%8C%AF%E8%AA%A4%E3%80%82%E8%A6%8F%E6%A0%BC%E6%AA%94%E6%A1%88%E7%9A%84%20USL%2FLSL%2FTarget%20%E6%AC%84%E4%BD%8D%E4%B8%AD%E6%9C%89%E4%B8%80%E4%BA%9B%E5%AD%97%E5%85%83%E5%BC%84%E4%BA%82%E4%BA%86%E8%B3%87%E6%96%99%E9%A1%9E%E5%9E%8B%E3%80%82%E6%88%91%E7%A2%BA%E4%BF%9D%20USL%2FLSL%2FTarget%20%E5%88%97%E6%98%AF%E6%95%B8%E4%BD%8D%2F%E9%80%A3%E7%BA%8C%E7%9A%84%EF%BC%8C%E7%8F%BE%E5%9C%A8%E5%B7%A5%E4%BD%9C%E6%AD%A3%E5%B8%B8%E3%80%82%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%E6%84%9F%E8%AC%9D%E5%A4%A7%E5%AE%B6%E6%AA%A2%E6%9F%A5%E3%80%82%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.