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%3EObtenir%20la%20propri%C3%A9t%C3%A9%20%C2%AB%26nbsp%3BBy%26nbsp%3B%C2%BB%20lors%20de%20l'utilisation%20de%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%3EBonjour%2C%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EJ'ai%20une%20question%20concernant%20le%20graphique%20de%20variabilit%C3%A9%20utilisant%20le%20script%20JSL.%20J'ai%20un%20graphique%20de%20variabilit%C3%A9%20utilisant%20SendToGroupBy.%20Dans%20ce%20script%20JSL%2C%20je%20prends%20une%20capture%20d'%C3%A9cran%20de%20chaque%20graphique%20cr%C3%A9%C3%A9%20%C3%A0%20partir%20de%20SendToGroupBy.%20Mais%20je%20souhaite%20ajouter%20le%20fichier%20png%20avec%20le%20nom%20de%20la%20propri%C3%A9t%C3%A9%20par%20laquelle%20il%20est%20group%C3%A9.%20Dans%20l'exemple%20ci-dessous%2C%20je%20souhaite%20ajouter%20le%20nom%20de%20fichier%20png%20FileName%20avec%20Example1.%20Comment%20puis-je%20obtenir%20cette%20valeur%20de%20propri%C3%A9t%C3%A9%20d'acc%C3%A8s%20%3F%20Toute%20aide%20serait%20appr%C3%A9ci%C3%A9e.%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%3EAutomatisation%20et%20scripts%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFen%C3%AAtres%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%26nbsp%3B%3A%20Obtenir%20la%20propri%C3%A9t%C3%A9%20%C2%AB%26nbsp%3BBy%26nbsp%3B%C2%BB%20lors%20de%20l'utilisation%20de%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%20D%C3%A9couvrez%20o%C3%B9%20Expr%20pourrait%20fonctionner%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%26nbsp%3B%3A%20Obtenir%20la%20propri%C3%A9t%C3%A9%20%C2%AB%26nbsp%3BBy%26nbsp%3B%C2%BB%20lors%20de%20l'utilisation%20de%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%3ESalut%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%26nbsp%3B%3A%20Obtenir%20la%20propri%C3%A9t%C3%A9%20%C2%AB%26nbsp%3BBy%26nbsp%3B%C2%BB%20lors%20de%20l'utilisation%20de%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%3EQuelle%20version%20de%20JMP%20utilisez-vous%20%3F%20Je%20pense%20que%20cela%20pourrait%20%C3%AAtre%20une%20nouveaut%C3%A9%20dans%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%26nbsp%3B%3A%20Obtenir%20la%20propri%C3%A9t%C3%A9%20%C2%AB%26nbsp%3BBy%26nbsp%3B%C2%BB%20lors%20de%20l'utilisation%20de%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%3EJ'utilise%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%26nbsp%3B%3A%20Obtenir%20la%20propri%C3%A9t%C3%A9%20%C2%AB%26nbsp%3BBy%26nbsp%3B%C2%BB%20lors%20de%20l'utilisation%20de%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%3EJe%20poste%20ici%20la%20r%C3%A9ponse%20que%20j'ai%20re%C3%A7ue%20du%20support%20JMP%20pour%20plus%20de%20visibilit%C3%A9.%20Fonctionne%20pour%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%3Edist%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%3ED%C3%A9couvrez%20o%C3%B9%20fonctionne%20Expr%20pour%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