<?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 get Caption Box values in a datatable? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-get-Caption-Box-values-in-a-datatable/m-p/765923#M94569</link>
    <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;Thanks, but do not get the V List box in my JMP 16 using your script.&lt;/P&gt;&lt;P&gt;Also, what I mean as as sum is a value of 14 (2+2+3+3+2+2) displayed on the chart, in this case.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2024 11:59:19 GMT</pubDate>
    <dc:creator>Neo</dc:creator>
    <dc:date>2024-06-14T11:59:19Z</dc:date>
    <item>
      <title>How to get Caption Box values in a datatable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-Caption-Box-values-in-a-datatable/m-p/763081#M94400</link>
      <description>&lt;P&gt;In the attached made up example data table the saved script plots the chart pasted below.&lt;/P&gt;&lt;P&gt;I would like to get the Caption Box values in a data table with TestStage numbers in the first column and the Caption Box Values in the second column. How to do this via JSL?&lt;/P&gt;&lt;P&gt;It would be even more useful if I could generate the data table dynamically, say from a button click in the graph builder window once I have selected the weeks via the Local Data Filter. Is this possible to do via JSL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Neo_0-1718098659379.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65086i4F476262280251B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Neo_0-1718098659379.png" alt="Neo_0-1718098659379.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 09:45:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-Caption-Box-values-in-a-datatable/m-p/763081#M94400</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2024-06-11T09:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Caption Box values in a datatable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-Caption-Box-values-in-a-datatable/m-p/763307#M94412</link>
      <description>&lt;P&gt;Have you considered using Tabulate? &lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$DOWNLOADS/example_DataTable.jmp");

nw = New Window("",
	Data Filter Context Box(
		H List Box(
			dt &amp;lt;&amp;lt; Data Filter(Local,
				Add Filter(
					columns(:TestWk),
					Modeling Type(:TestWk, Nominal),
					Where(
						:TestWk == {19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32}
					),
					Display(:TestWk, Find(Set Text("")))
				)
			),
			gb = dt &amp;lt;&amp;lt; Graph Builder(
				Size(744, 332),
				Show Control Panel(0),
				Variables(X(:TestWk), Y(:Median), Group Y(:TestStage)),
				Elements(
					Points(X, Y, Legend(8)),
					Caption Box(X, Y, Legend(10), Summary Statistic("N"))
				),
				SendToReport(Dispatch({}, "TestWk", ScaleBox, {Label Row(Show Major Grid(1))}))
			),
			tab = dt &amp;lt;&amp;lt; Tabulate(Show Control Panel(0), Add Table(Row Table(Grouping Columns(:TestStage))))
		)
	)
);

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If this isn't enough you could add button to turn the tabulate into data table (and make tabulate hidden if necessary).&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 15:41:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-Caption-Box-values-in-a-datatable/m-p/763307#M94412</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-06-11T15:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Caption Box values in a datatable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-Caption-Box-values-in-a-datatable/m-p/765515#M94522</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp; Thanks, I got your suggestion to work for my actual case. I would like to control two more things if this is possible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to change the "N"&amp;nbsp; (blue arrow) on the table to something like "die tested"?&lt;/P&gt;&lt;P&gt;How to remove the text below the chart and the tabulated table (circled in red below)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, how to get the sum of "N"?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Neo_0-1718291961479.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65151i236400EAE3DF7F80/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Neo_0-1718291961479.png" alt="Neo_0-1718291961479.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 15:39:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-Caption-Box-values-in-a-datatable/m-p/765515#M94522</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2024-06-13T15:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Caption Box values in a datatable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-Caption-Box-values-in-a-datatable/m-p/765601#M94533</link>
      <description>&lt;P&gt;I'm not sure how to easily keep that hidden from tabulate as it seems to re-create it based on something (when you have too large Where statement it adds it back or something weird). You can do it with filter change handler but I would try to avoid that as much as possible (I would rather keep that Where text than start messing with those).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$DOWNLOADS/example_DataTable.jmp");

nw = New Window("",
	Data Filter Context Box(
		H List Box(
			dt &amp;lt;&amp;lt; Data Filter(Local,
				Add Filter(
					columns(:TestWk),
					Modeling Type(:TestWk, Nominal),
					Where(
						:TestWk == {19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32}
					),
					Display(:TestWk, Find(Set Text("")))
				)
			),
			gb = dt &amp;lt;&amp;lt; Graph Builder(
				Size(744, 332),
				Show Control Panel(0),
				Variables(X(:TestWk), Y(:Median), Group Y(:TestStage)),
				Elements(
					Points(X, Y, Legend(8)),
					Caption Box(X, Y, Legend(10), Summary Statistic("N"))
				),
				SendToReport(Dispatch({}, "TestWk", ScaleBox, {Label Row(Show Major Grid(1))}))
			),
			tab = dt &amp;lt;&amp;lt; Tabulate(
				Change Item Label(Statistics(N, "Die tested")),
				Show Control Panel(0),
				Add Table(Column Table(Statistics(N)), Row Table(Grouping Columns(:TestStage)))
			)
		)
	)
);
wait(0);
(nw &amp;lt;&amp;lt; XPath("//TextBox[contains(text(), 'Where(')]")) &amp;lt;&amp;lt; Visibility("Collapse");
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Jun 2024 15:52:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-Caption-Box-values-in-a-datatable/m-p/765601#M94533</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-06-13T15:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Caption Box values in a datatable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-Caption-Box-values-in-a-datatable/m-p/765625#M94534</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;Thanks, I do not mind the where statements in JMP, but when copying the chart onto other windows apps, I would have preferred not to have them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to display the sum of "N" (i.e. Total Die Tested)&amp;nbsp; below the table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 16:24:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-Caption-Box-values-in-a-datatable/m-p/765625#M94534</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2024-06-13T16:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Caption Box values in a datatable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-Caption-Box-values-in-a-datatable/m-p/765628#M94536</link>
      <description>&lt;P&gt;You can add extra V List Box to wrap graph builder and tabulate&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1718296299008.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65153iC01ED1D15167C9F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1718296299008.png" alt="jthi_0-1718296299008.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$DOWNLOADS/example_DataTable.jmp");

nw = New Window("",
	Data Filter Context Box(
		H List Box(
			dt &amp;lt;&amp;lt; Data Filter(Local,
				Add Filter(
					columns(:TestWk),
					Modeling Type(:TestWk, Nominal),
					Where(
						:TestWk == {19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32}
					),
					Display(:TestWk, Find(Set Text("")))
				)
			),
			V List Box(
				gb = dt &amp;lt;&amp;lt; Graph Builder(
					Size(744, 332),
					Show Control Panel(0),
					Variables(X(:TestWk), Y(:Median), Group Y(:TestStage)),
					Elements(
						Points(X, Y, Legend(8)),
						Caption Box(X, Y, Legend(10), Summary Statistic("N"))
					),
					SendToReport(Dispatch({}, "TestWk", ScaleBox, {Label Row(Show Major Grid(1))}))
				),
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;</description>
      <pubDate>Thu, 13 Jun 2024 16:33:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-Caption-Box-values-in-a-datatable/m-p/765628#M94536</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-06-13T16:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Caption Box values in a datatable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-Caption-Box-values-in-a-datatable/m-p/765923#M94569</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;Thanks, but do not get the V List box in my JMP 16 using your script.&lt;/P&gt;&lt;P&gt;Also, what I mean as as sum is a value of 14 (2+2+3+3+2+2) displayed on the chart, in this case.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 11:59:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-Caption-Box-values-in-a-datatable/m-p/765923#M94569</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2024-06-14T11:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Caption Box values in a datatable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-Caption-Box-values-in-a-datatable/m-p/765992#M94590</link>
      <description>&lt;P&gt;You could use separate tabulate for that&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1718383831274.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65226iCAC8E32BE81A20D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1718383831274.png" alt="jthi_0-1718383831274.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$DOWNLOADS/example_DataTable.jmp");

nw = New Window("",
	Data Filter Context Box(
		H List Box(
			dt &amp;lt;&amp;lt; Data Filter(Local,
				Add Filter(
					columns(:TestWk),
					Modeling Type(:TestWk, Nominal),
					Where(
						:TestWk == {19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32}
					),
					Display(:TestWk, Find(Set Text("")))
				)
			),
			V List Box(
				gb = dt &amp;lt;&amp;lt; Graph Builder(
					Size(744, 332),
					Show Control Panel(0),
					Variables(X(:TestWk), Y(:Median), Group Y(:TestStage)),
					Elements(
						Points(X, Y, Legend(8)),
						Caption Box(X, Y, Legend(10), Summary Statistic("N"))
					),
					SendToReport(Dispatch({}, "TestWk", ScaleBox, {Label Row(Show Major Grid(1))}))
				),
				tab2 = dt &amp;lt;&amp;lt; Tabulate(Show Control Panel(0), Add Table(Column Table(Statistics(N))))
			),
			tab = dt &amp;lt;&amp;lt; Tabulate(
				Change Item Label(Statistics(N, "Die tested")),
				Show Control Panel(0),
				Add Table(Column Table(Statistics(N)), Row Table(Grouping Columns(:TestStage)))
			)
		)
	)
);
wait(0);
(nw &amp;lt;&amp;lt; XPath("//TextBox[contains(text(), 'Where(')]")) &amp;lt;&amp;lt; Visibility("Collapse");
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 16:50:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-Caption-Box-values-in-a-datatable/m-p/765992#M94590</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-06-14T16:50:43Z</dc:date>
    </item>
  </channel>
</rss>

