<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to name the picture with variables in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-name-the-picture-with-variables/m-p/451820#M69854</link>
    <description>&lt;P&gt;You seem to be overwriting strings in TCB list (on purpose?). It can be done like that, but then during the saving use TCB[i] &amp;lt;&amp;lt; get name instead of Char(TCB[i]), but I would use use different list to keep the names and references.&lt;/P&gt;</description>
    <pubDate>Sun, 16 Jan 2022 11:22:35 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2022-01-16T11:22:35Z</dc:date>
    <item>
      <title>How to name the picture with variables</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-name-the-picture-with-variables/m-p/451811#M69853</link>
      <description>&lt;P&gt;Dear JMP admin and users,&lt;/P&gt;
&lt;P&gt;I would like to name the picture based on variables and I tried to follow some tips in this forum. However, the output files' name is undesried.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;TCB = {"TCB218" ; "TCB219" ; "TCB220"};

For( i = 1, i &amp;lt;= N Items( TCB ), i++, 

	k = 1;

	dt &amp;lt;&amp;lt; Select Where( :entitygroup3 == TCB[i] );
	TCB[i] = dt &amp;lt;&amp;lt; Subset(
		Output Table( TCB[i] ),
		Selected Rows( 1 ),
		Selected columns only( 0 )
	);

	Summary = New Window( "OOC Summary",
		Graph Builder(
			Size( 1268, 656 ),
			Show Control Panel( 0 ),
			Variables(
				X( :KPP ),
				Group X( :DIE_TYPE ),
				Group X( :spc_chart_subset ),
				Group Y( :Bonder ),
				Color( :monitor_set_name )
			),
			Elements( Bar( X, Legend( 13 ), Label( "Label by Value" ) ) ),
			Local Data Filter(
				Close Outline( 1 ),
				Add Filter(
					columns( :chart_incontrol_flag ),
					Where( :chart_incontrol_flag == "N" )
				)
			),
			SendToReport(
				Dispatch(
					{},
					"KPP",
					ScaleBox,
					{Label Row(
						{Label Orientation( "Vertical" ), Tick Mark Style( "Short Mark" )}
					)}
				),
				Dispatch(
					{},
					"400",
					ScaleBox,
					{Legend Model( 13, Properties( 0, {Fill Color( 68 )} ) )}
				)
			)
		)
	);
	Summary &amp;lt;&amp;lt; save picture( "&amp;lt;&amp;lt;&amp;lt;dir&amp;gt;&amp;gt;&amp;gt;\" || Char( TCB[i] ) || "_Summary" || ".png", "png" );

	k++;
)
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I want the output name of the picture is TCB218_Summary.png , TCB219_Summary.png , TCB220_Summary.png, but the result is&amp;nbsp;DataTable(-TCB218 8-)_Summary.png&lt;BR /&gt;&lt;BR /&gt;Could you give me to some advice?&lt;BR /&gt;Sincerely&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:08:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-name-the-picture-with-variables/m-p/451811#M69853</guid>
      <dc:creator>PhamBao</dc:creator>
      <dc:date>2023-06-09T18:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to name the picture with variables</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-name-the-picture-with-variables/m-p/451820#M69854</link>
      <description>&lt;P&gt;You seem to be overwriting strings in TCB list (on purpose?). It can be done like that, but then during the saving use TCB[i] &amp;lt;&amp;lt; get name instead of Char(TCB[i]), but I would use use different list to keep the names and references.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jan 2022 11:22:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-name-the-picture-with-variables/m-p/451820#M69854</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-01-16T11:22:35Z</dc:date>
    </item>
  </channel>
</rss>

