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-802117%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EObtener%20la%20propiedad%20'By'%20al%20utilizar%20SendToByGroup%20JSL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-802117%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHola%2C%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3ETengo%20una%20pregunta%20sobre%20el%20gr%C3%A1fico%20de%20variabilidad%20que%20utiliza%20un%20script%20JSL.%20Tengo%20un%20gr%C3%A1fico%20de%20variabilidad%20que%20utiliza%20SendToGroupBy.%20En%20este%20script%20JSL%2C%20tomo%20una%20captura%20de%20pantalla%20de%20cada%20gr%C3%A1fico%20creado%20a%20partir%20de%20SendToGroupBy.%20Pero%20quiero%20agregar%20al%20archivo%20png%20el%20nombre%20de%20la%20propiedad%20por%20la%20que%20est%C3%A1%20agrupado.%20En%20el%20siguiente%20ejemplo%2C%20quiero%20agregar%20el%20nombre%20del%20archivo%20png%20FileName%20con%20Example1.%20%C2%BFC%C3%B3mo%20puedo%20obtener%20ese%20valor%20de%20propiedad%20de%20acceso%3F%20Cualquier%20ayuda%20ser%C3%A1%20apreciada.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MachineElk431_0-1727373714426.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22MachineElk431_0-1727373714426.png%22%20style%3D%22width%3A%20921px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22MachineElk431_0-1727373714426.png%22%20style%3D%22width%3A%20921px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22MachineElk431_0-1727373714426.png%22%20style%3D%22width%3A%20921px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22MachineElk431_0-1727373714426.png%22%20style%3D%22width%3A%20921px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22MachineElk431_0-1727373714426.png%22%20style%3D%22width%3A%20921px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22MachineElk431_0-1727373714426.png%22%20style%3D%22width%3A%20921px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F68641i4934E3A02265C32D%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22MachineElk431_0-1727373714426.png%22%20alt%3D%22MachineElk431_0-1727373714426.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MachineElk431_3-1727373138331.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22MachineElk431_3-1727373138331.png%22%20style%3D%22width%3A%20921px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22MachineElk431_3-1727373138331.png%22%20style%3D%22width%3A%20921px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22MachineElk431_3-1727373138331.png%22%20style%3D%22width%3A%20921px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22MachineElk431_3-1727373138331.png%22%20style%3D%22width%3A%20921px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22MachineElk431_3-1727373138331.png%22%20style%3D%22width%3A%20921px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22MachineElk431_3-1727373138331.png%22%20style%3D%22width%3A%20921px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F68640iF79FC5922BCD1889%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22MachineElk431_3-1727373138331.png%22%20alt%3D%22MachineElk431_3-1727373138331.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-802117%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EAutomatizaci%C3%B3n%20y%20scripting%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EVentanas%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-802127%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Obtener%20la%20propiedad%20'By'%20al%20utilizar%20SendToByGroup%20JSL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-802127%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%26lt%3B%26lt%3B%20Obtenga%20informaci%C3%B3n%20sobre%20d%C3%B3nde%20podr%C3%ADa%20funcionar%20Expr%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(1)%3B%0A%0Adt%20%3D%20Open(%22%24SAMPLE_DATA%2FBig%20Class.jmp%22)%3B%0A%0Adists%20%3D%20dt%20%26lt%3B%26lt%3B%20Distribution(%0A%09By(%3ASex)%2C%0A%09SendToByGroup(%0A%09%09%7B%3Asex%20%3D%3D%20%22F%22%7D%2C%0A%09%09Continuous%20Distribution(Column(%3Aweight)%2C%20Normal%20Quantile%20Plot(1))%0A%09)%2C%0A%09SendToByGroup(%7B%3Asex%20%3D%3D%20%22M%22%7D%2C%20Continuous%20Distribution(Column(%3Aweight)))%0A)%3B%0A%0AFor%20Each(%7Bdist%7D%2C%20dists%2C%0A%09show(dist%20%26lt%3B%26lt%3B%20Get%20Where%20Expr)%3B%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-802347%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Obtener%20la%20propiedad%20'By'%20al%20utilizar%20SendToByGroup%20JSL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-802347%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHola%20jarmo%2C%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20reply.%20Unfortunately%2C%20when%20I%20try%20the%20sample%20script%20returns%20%3CCODE%20class%3D%22%20language-jsl%22%3Edist%20%26lt%3B%26lt%3B%20Get%20Where%20Expr%3C%2FCODE%3E%20Distribution%5B%5D.%20Am%20I%20missing%20something%3F%20Should%20there%20be%20some%20expression%20to%20access%20the%20dist%20obj%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-802348%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Obtener%20la%20propiedad%20'By'%20al%20utilizar%20SendToByGroup%20JSL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-802348%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%C2%BFQu%C3%A9%20versi%C3%B3n%20de%20JMP%20est%C3%A1s%20usando%3F%20Creo%20que%20podr%C3%ADa%20ser%20una%20novedad%20en%20JMP18.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-802349%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Obtener%20la%20propiedad%20'By'%20al%20utilizar%20SendToByGroup%20JSL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-802349%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EEstoy%20usando%20JMP%2017.0.0%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-802425%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Obtener%20la%20propiedad%20'By'%20al%20utilizar%20SendToByGroup%20JSL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-802425%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EPublico%20aqu%C3%AD%20la%20respuesta%20que%20recib%C3%AD%20del%20soporte%20de%20JMP%20para%20que%20quede%20m%C3%A1s%20visible.%20Funciona%20con%20JMP%2017.0.0%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%2FBig%20Class.jmp%22%20)%3B%0Adists%20%3D%20dt%20%26lt%3B%26lt%3B%20Distribution(%0A%09By(%20%3ASex%20)%2C%0A%09SendToByGroup(%0A%09%09%7B%3Asex%20%3D%3D%20%22F%22%7D%2C%0A%09%09Continuous%20Distribution(%20Column(%20%3Aweight%20)%2C%20Normal%20Quantile%20Plot(%201%20)%20)%0A%09)%2C%0A%09SendToByGroup(%20%7B%3Asex%20%3D%3D%20%22M%22%7D%2C%20Continuous%20Distribution(%20Column(%20%3Aweight%20)%20)%20)%0A)%3B%0A%0AFor%20Each(%20%7Bdist%7D%2C%20dists%2C%20expr%20%3D%20dist%20%26lt%3B%26lt%3B%20get%20script%3B%0A%09Print(%20Arg(%20Extract%20Expr(%20expr%2C%20Where(%20Wild()%20)%20)%20)%20)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CSPAN%3Edistribuci%C3%B3n%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%26lt%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%26lt%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%3E%20%3C%2FSPAN%3EObtenga%20informaci%C3%B3n%20sobre%20d%C3%B3nde%20funciona%20Expr%20para%20JMP%2018%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
MachineElk431
Level II

Get 'By' Property when using SendToByGroup JSL

Hello,

 

I have a question regarding Variability Chart using JSL script. I have a variability chart using SendToGroupBy. In this JSL script I take a screenshot of each chart created from SendToGroupBy. But I want to append the png file with the property name that it is grouped by. In the example below, I want to append the FileName png file name with Example1. How can I get that access property value? Any help would be appreciated.

 

MachineElk431_0-1727373714426.png

 

MachineElk431_3-1727373138331.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
MachineElk431
Level II

Re: Get 'By' Property when using SendToByGroup JSL

Posting the reply I got from JMP support here for visibility. Works for JMP 17.0.0

 

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dists = dt << Distribution(
	By( :Sex ),
	SendToByGroup(
		{:sex == "F"},
		Continuous Distribution( Column( :weight ), Normal Quantile Plot( 1 ) )
	),
	SendToByGroup( {:sex == "M"}, Continuous Distribution( Column( :weight ) ) )
);

For Each( {dist}, dists, expr = dist << get script;
	Print( Arg( Extract Expr( expr, Where( Wild() ) ) ) )
);

dist << Get Where Expr works for JMP 18

View solution in original post

6 REPLIES 6
jthi
Super User

Re: Get 'By' Property when using SendToByGroup JSL

<< Get Where Expr might work

Names Default To Here(1);

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

dists = dt << Distribution(
	By(:Sex),
	SendToByGroup(
		{:sex == "F"},
		Continuous Distribution(Column(:weight), Normal Quantile Plot(1))
	),
	SendToByGroup({:sex == "M"}, Continuous Distribution(Column(:weight)))
);

For Each({dist}, dists,
	show(dist << Get Where Expr);
);
-Jarmo
MachineElk431
Level II

Re: Get 'By' Property when using SendToByGroup JSL

Hi Jarmo,

 

Thank you for your reply. Unfortunately, when I try the sample script returns dist << Get Where Expr Distribution[]. Am I missing something? Should there be some expression to access the dist obj?

jthi
Super User

Re: Get 'By' Property when using SendToByGroup JSL

Which JMP version are you using? I think that might be a new thing in JMP18.

-Jarmo
MachineElk431
Level II

Re: Get 'By' Property when using SendToByGroup JSL

I am using JMP 17.0.0

MachineElk431
Level II

Re: Get 'By' Property when using SendToByGroup JSL

Posting the reply I got from JMP support here for visibility. Works for JMP 17.0.0

 

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dists = dt << Distribution(
	By( :Sex ),
	SendToByGroup(
		{:sex == "F"},
		Continuous Distribution( Column( :weight ), Normal Quantile Plot( 1 ) )
	),
	SendToByGroup( {:sex == "M"}, Continuous Distribution( Column( :weight ) ) )
);

For Each( {dist}, dists, expr = dist << get script;
	Print( Arg( Extract Expr( expr, Where( Wild() ) ) ) )
);

dist << Get Where Expr works for JMP 18

jthi
Super User

Re: Get 'By' Property when using SendToByGroup JSL

That is what I would have suggested for earlier versions of JMP also. And I I did that even in JMP18 until I did figure out that JMP18 has few useful messages regarding using by and where in platforms (at least << Get Where Expr and << Get By Levels)

-Jarmo