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%3E%E4%BD%BF%E7%94%A8%20SendToByGroup%20JSL%20%E6%97%B6%E8%8E%B7%E5%8F%96%E2%80%9CBy%E2%80%9D%E5%B1%9E%E6%80%A7%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-802117%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%E6%9C%89%E4%B8%80%E4%B8%AA%E5%85%B3%E4%BA%8E%E4%BD%BF%E7%94%A8%20JSL%20%E8%84%9A%E6%9C%AC%E7%9A%84%E5%8F%98%E5%BC%82%E6%80%A7%E5%9B%BE%E8%A1%A8%E7%9A%84%E9%97%AE%E9%A2%98%E3%80%82%E6%88%91%E6%9C%89%E4%B8%80%E4%B8%AA%E4%BD%BF%E7%94%A8%20SendToGroupBy%20%E7%9A%84%E5%8F%98%E5%BC%82%E6%80%A7%E5%9B%BE%E8%A1%A8%E3%80%82%E5%9C%A8%E8%BF%99%E4%B8%AA%20JSL%20%E8%84%9A%E6%9C%AC%E4%B8%AD%EF%BC%8C%E6%88%91%E6%88%AA%E5%8F%96%E4%BA%86%E4%BB%8E%20SendToGroupBy%20%E5%88%9B%E5%BB%BA%E7%9A%84%E6%AF%8F%E4%B8%AA%E5%9B%BE%E8%A1%A8%E7%9A%84%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE%E3%80%82%E4%BD%86%E6%88%91%E6%83%B3%E5%B0%86%20png%20%E6%96%87%E4%BB%B6%E9%99%84%E5%8A%A0%E5%88%B0%E5%AE%83%E6%89%80%E5%88%86%E7%BB%84%E7%9A%84%E5%B1%9E%E6%80%A7%E5%90%8D%E7%A7%B0%E4%B8%8A%E3%80%82%E5%9C%A8%E4%B8%8B%E9%9D%A2%E7%9A%84%E7%A4%BA%E4%BE%8B%E4%B8%AD%EF%BC%8C%E6%88%91%E6%83%B3%E5%B0%86%20FileName%20png%20%E6%96%87%E4%BB%B6%E5%90%8D%E9%99%84%E5%8A%A0%E5%88%B0%20Example1%20%E4%B8%8A%E3%80%82%E6%88%91%E5%A6%82%E4%BD%95%E6%89%8D%E8%83%BD%E8%8E%B7%E5%BE%97%E8%AF%A5%E8%AE%BF%E9%97%AE%E5%B1%9E%E6%80%A7%E5%80%BC%EF%BC%9F%E4%BB%BB%E4%BD%95%E5%B8%AE%E5%8A%A9%E9%83%BD%E5%B0%86%E4%B8%8D%E8%83%9C%E6%84%9F%E6%BF%80%E3%80%82%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%3E%E8%87%AA%E5%8A%A8%E5%8C%96%E5%92%8C%E8%84%9A%E6%9C%AC%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E8%A7%86%E7%AA%97%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%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E4%BD%BF%E7%94%A8%20SendToByGroup%20JSL%20%E6%97%B6%E8%8E%B7%E5%8F%96%E2%80%9CBy%E2%80%9D%E5%B1%9E%E6%80%A7%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%20%E4%BA%86%E8%A7%A3%20Expr%20%E5%8F%AF%E8%83%BD%E5%8F%91%E6%8C%A5%E4%BD%9C%E7%94%A8%E7%9A%84%E5%9C%B0%E6%96%B9%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%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E4%BD%BF%E7%94%A8%20SendToByGroup%20JSL%20%E6%97%B6%E8%8E%B7%E5%8F%96%E2%80%9CBy%E2%80%9D%E5%B1%9E%E6%80%A7%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-802347%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%97%A8%EF%BC%8C%E8%B4%BE%E8%8E%AB%EF%BC%8C%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%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E4%BD%BF%E7%94%A8%20SendToByGroup%20JSL%20%E6%97%B6%E8%8E%B7%E5%8F%96%E2%80%9CBy%E2%80%9D%E5%B1%9E%E6%80%A7%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-802348%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%82%A8%E4%BD%BF%E7%94%A8%E7%9A%84%E6%98%AF%E5%93%AA%E4%B8%AA%20JMP%20%E7%89%88%E6%9C%AC%EF%BC%9F%E6%88%91%E8%AE%A4%E4%B8%BA%E8%BF%99%E5%8F%AF%E8%83%BD%E6%98%AF%20JMP18%20%E4%B8%AD%E7%9A%84%E6%96%B0%E5%8A%9F%E8%83%BD%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-802349%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E4%BD%BF%E7%94%A8%20SendToByGroup%20JSL%20%E6%97%B6%E8%8E%B7%E5%8F%96%E2%80%9CBy%E2%80%9D%E5%B1%9E%E6%80%A7%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-802349%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E4%BD%BF%E7%94%A8%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%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E4%BD%BF%E7%94%A8%20SendToByGroup%20JSL%20%E6%97%B6%E8%8E%B7%E5%8F%96%E2%80%9CBy%E2%80%9D%E5%B1%9E%E6%80%A7%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-802425%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E5%B0%86%E6%88%91%E4%BB%8E%20JMP%20%E6%94%AF%E6%8C%81%E9%83%A8%E9%97%A8%E8%8E%B7%E5%BE%97%E7%9A%84%E5%9B%9E%E5%A4%8D%E5%8F%91%E5%B8%83%E5%9C%A8%E8%BF%99%E9%87%8C%E4%BB%A5%E4%BE%9B%E5%8F%82%E8%80%83%E3%80%82%E9%80%82%E7%94%A8%E4%BA%8E%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%3E%E5%88%86%E5%B8%83%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%3E%E8%8E%B7%E5%8F%96%20Expr%20%E5%9C%A8%20JMP%2018%20%E4%B8%AD%E7%9A%84%E5%B7%A5%E4%BD%9C%E4%BD%8D%E7%BD%AE%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