cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
%3CLINGO-SUB%20id%3D%22lingo-sub-802117%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EOttieni%20la%20propriet%C3%A0%20'By'%20quando%20usi%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%3ECiao%2C%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EHo%20una%20domanda%20riguardante%20Variability%20Chart%20usando%20lo%20script%20JSL.%20Ho%20un%20grafico%20di%20variabilit%C3%A0%20usando%20SendToGroupBy.%20In%20questo%20script%20JSL%20faccio%20uno%20screenshot%20di%20ogni%20grafico%20creato%20da%20SendToGroupBy.%20Ma%20voglio%20aggiungere%20al%20file%20png%20il%20nome%20della%20propriet%C3%A0%20in%20base%20al%20quale%20%C3%A8%20raggruppato.%20Nell'esempio%20seguente%2C%20voglio%20aggiungere%20il%20nome%20del%20file%20png%20FileName%20con%20Example1.%20Come%20posso%20ottenere%20quel%20valore%20della%20propriet%C3%A0%20di%20accesso%3F%20Ogni%20aiuto%20sarebbe%20apprezzato.%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%3EAutomazione%20e%20scripting%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFinestre%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%20Ottieni%20la%20propriet%C3%A0%20'By'%20quando%20usi%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%20Ottieni%20dove%20Expr%20potrebbe%20funzionare%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%20Ottieni%20la%20propriet%C3%A0%20'By'%20quando%20usi%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%3ECiao%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%20Ottieni%20la%20propriet%C3%A0%20'By'%20quando%20usi%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%3EQuale%20versione%20di%20JMP%20stai%20utilizzando%3F%20Penso%20che%20potrebbe%20essere%20una%20novit%C3%A0%20in%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%20Ottieni%20la%20propriet%C3%A0%20'By'%20quando%20usi%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%3ESto%20utilizzando%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%20Ottieni%20la%20propriet%C3%A0%20'By'%20quando%20usi%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%3EInvio%20la%20risposta%20che%20ho%20ricevuto%20dal%20supporto%20JMP%20qui%20per%20visibilit%C3%A0.%20Funziona%20per%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%3EOttieni%20dove%20Expr%20funziona%20per%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