<?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 Extract Report Data and Export it to Excel in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Extract-Report-Data-and-Export-it-to-Excel/m-p/225417#M44765</link>
    <description>&lt;P&gt;I am totally new to the JMP community and have a limited coding background. I am working with Life Distributions (Weibulls mostly), and I would like to create an Add-in that can do the following tasks once I have selected the best distribution fit:&lt;/P&gt;
&lt;P&gt;1. Save specific report data from distribution (see the data tables &lt;FONT color="#FF0000"&gt;in red)&lt;/FONT&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capturesss.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/19255iDDC2F4C1FA7E0FE8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capturesss.PNG" alt="Capturesss.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/19256i5F27939C314CEA6D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. Export the data into an excel sheet&lt;/P&gt;
&lt;P&gt;3. Have the add-in button available whithin report window?&lt;/P&gt;
&lt;P&gt;HUGE THANKS!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the report script behind the distribution and parameters I need within the code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Life Distribution(
	Y( :event_age ),
	Censor( :event_type ),
	Censor Code( "S" ),
	&amp;lt;&amp;lt;Fit Weibull,
	Confidence Interval Method( Likelihood ),
	&amp;lt;&amp;lt;Set Scale( Weibull ),
	&amp;lt;&amp;lt;Suppress Plot( Nonparametric ),
	Interval Type( Simultaneous ),
	Show Event Plot Frequency Label( 0 ),
	&amp;lt;&amp;lt;Set Scriptables(
		{Probability Paper(
			Profiler(
				1,
				Confidence Intervals( 1 ),
				Term Value( event_age( 4.657084189, Lock( 0 ), Show( 1 ) ) )
			)
		), Weibull Distribution(
			Profiler( 1, Confidence Intervals( 1 ), Term Value( event_age( 4.6571, Lock( 0 ), Show( 1 ) ) ) )
		), Weibull Quantile(
			Profiler( 1, Confidence Intervals( 1 ), Term Value( Probability( 0.5, Lock( 0 ), Show( 1 ) ) ) )
		), Weibull Hazard(
			Profiler( 1, Confidence Intervals( 1 ), Term Value( event_age( 4.6571, Lock( 0 ), Show( 1 ) ) ) )
		), Weibull Density(
			Profiler( 1, Confidence Intervals( 0 ), Term Value( event_age( 4.6571, Lock( 0 ), Show( 1 ) ) ) )
		), Custom Estimation( Weibull, 1, Estimate Probability( 5, 10, 15, 20, 25, 30, 35, 40 ) )}
	),
	SendToReport(
		Dispatch(
			{"Compare Distributions"},
			"Life Distribution",
			FrameBox( 2 ),
			{Grid Line Order( 2 ), Reference Line Order( 3 )}
		),
		Dispatch(
			{"Compare Distributions"},
			"Distribution Profiler",
			OutlineBox,
			{Set Summary Behavior( "Collapse" )}
		),
		Dispatch( {"Statistics"}, "", ListBox, {Set Summary Behavior( "Collapse" )} )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Sep 2019 11:51:26 GMT</pubDate>
    <dc:creator>jemairsmartes</dc:creator>
    <dc:date>2019-09-16T11:51:26Z</dc:date>
    <item>
      <title>Extract Report Data and Export it to Excel</title>
      <link>https://community.jmp.com/t5/Discussions/Extract-Report-Data-and-Export-it-to-Excel/m-p/225417#M44765</link>
      <description>&lt;P&gt;I am totally new to the JMP community and have a limited coding background. I am working with Life Distributions (Weibulls mostly), and I would like to create an Add-in that can do the following tasks once I have selected the best distribution fit:&lt;/P&gt;
&lt;P&gt;1. Save specific report data from distribution (see the data tables &lt;FONT color="#FF0000"&gt;in red)&lt;/FONT&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capturesss.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/19255iDDC2F4C1FA7E0FE8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capturesss.PNG" alt="Capturesss.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/19256i5F27939C314CEA6D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. Export the data into an excel sheet&lt;/P&gt;
&lt;P&gt;3. Have the add-in button available whithin report window?&lt;/P&gt;
&lt;P&gt;HUGE THANKS!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the report script behind the distribution and parameters I need within the code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Life Distribution(
	Y( :event_age ),
	Censor( :event_type ),
	Censor Code( "S" ),
	&amp;lt;&amp;lt;Fit Weibull,
	Confidence Interval Method( Likelihood ),
	&amp;lt;&amp;lt;Set Scale( Weibull ),
	&amp;lt;&amp;lt;Suppress Plot( Nonparametric ),
	Interval Type( Simultaneous ),
	Show Event Plot Frequency Label( 0 ),
	&amp;lt;&amp;lt;Set Scriptables(
		{Probability Paper(
			Profiler(
				1,
				Confidence Intervals( 1 ),
				Term Value( event_age( 4.657084189, Lock( 0 ), Show( 1 ) ) )
			)
		), Weibull Distribution(
			Profiler( 1, Confidence Intervals( 1 ), Term Value( event_age( 4.6571, Lock( 0 ), Show( 1 ) ) ) )
		), Weibull Quantile(
			Profiler( 1, Confidence Intervals( 1 ), Term Value( Probability( 0.5, Lock( 0 ), Show( 1 ) ) ) )
		), Weibull Hazard(
			Profiler( 1, Confidence Intervals( 1 ), Term Value( event_age( 4.6571, Lock( 0 ), Show( 1 ) ) ) )
		), Weibull Density(
			Profiler( 1, Confidence Intervals( 0 ), Term Value( event_age( 4.6571, Lock( 0 ), Show( 1 ) ) ) )
		), Custom Estimation( Weibull, 1, Estimate Probability( 5, 10, 15, 20, 25, 30, 35, 40 ) )}
	),
	SendToReport(
		Dispatch(
			{"Compare Distributions"},
			"Life Distribution",
			FrameBox( 2 ),
			{Grid Line Order( 2 ), Reference Line Order( 3 )}
		),
		Dispatch(
			{"Compare Distributions"},
			"Distribution Profiler",
			OutlineBox,
			{Set Summary Behavior( "Collapse" )}
		),
		Dispatch( {"Statistics"}, "", ListBox, {Set Summary Behavior( "Collapse" )} )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 11:51:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extract-Report-Data-and-Export-it-to-Excel/m-p/225417#M44765</guid>
      <dc:creator>jemairsmartes</dc:creator>
      <dc:date>2019-09-16T11:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Report Data and Export it to Excel</title>
      <link>https://community.jmp.com/t5/Discussions/Extract-Report-Data-and-Export-it-to-Excel/m-p/920597#M107944</link>
      <description>&lt;P&gt;Hi, I am trying to do something similar so my reply here is just to link me to this question in case you get a great answer!&lt;/P&gt;</description>
      <pubDate>Fri, 19 Dec 2025 09:50:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extract-Report-Data-and-Export-it-to-Excel/m-p/920597#M107944</guid>
      <dc:creator>RichardSlack</dc:creator>
      <dc:date>2025-12-19T09:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Report Data and Export it to Excel</title>
      <link>https://community.jmp.com/t5/Discussions/Extract-Report-Data-and-Export-it-to-Excel/m-p/920646#M107947</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;cr=current report();
weibulltable=cr&amp;lt;&amp;lt; XPath( "//OutlineBox[text() = '"||"Parametric Estimate - Weibull"|| "']" );

//grab the first instance of the table and 'make combined' if other results are needed
weibulltable=cr&amp;lt;&amp;lt;XPath("//OutlineBox[text()='Statistics']//OutlineBox[text()='Parametric Estimate - Weibull']//NumberColBox[NumberColBoxHeader[text()='Estimate']]");
weibulldt=weibulltable[1]&amp;lt;&amp;lt;make combined data table;

estimate_prob_table=cr&amp;lt;&amp;lt; XPath("//OutlineBox[text()='Statistics']//OutlineBox[text()='Parametric Estimate - Weibull']//OutlineBox[text()='Estimate Probability']//NumberColEditBox[NumberColEditBoxHeader[text()='event_age']]");
estimatedt=estimate_prob_table[1]&amp;lt;&amp;lt;make combined data table;

//column selections are different between v18 and 19, the script below would work on yours, 19 is different
estimatedt&amp;lt;&amp;lt;clear column selection;
estimatedt&amp;lt;&amp;lt;select columns("event_age", "Failure Probability", "Failure Probability Upper 95% (Likelihood)", "Failure Probability Upper 95% (Likelihood)")//select columns you need to delete
estimatedt&amp;lt;&amp;lt;invert column selection;
estimatedt&amp;lt;&amp;lt;delete columns();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This will get you to having both of those as individual JMP tables that you can then export, you can put this script into a&lt;A href="http://cr=current%20report(); weibulltable=cr&amp;lt;&amp;lt; XPath( &amp;quot;//OutlineBox[text() = '&amp;quot;||&amp;quot;Parametric Estimate - Weibull&amp;quot;|| &amp;quot;']&amp;quot; );  //grab the first instance of the table and 'make combined' if other results are needed weibulltable=cr&amp;lt;&amp;lt;XPath(&amp;quot;//OutlineBox[text()='Statistics']//OutlineBox[text()='Parametric Estimate - Weibull']//NumberColBox[NumberColBoxHeader[text()='Estimate']]&amp;quot;); weibulldt=weibulltable[1]&amp;lt;&amp;lt;make combined data table;  estimate_prob_table=cr&amp;lt;&amp;lt; XPath(&amp;quot;//OutlineBox[text()='Statistics']//OutlineBox[text()='Parametric Estimate - Weibull']//OutlineBox[text()='Estimate Probability']//NumberColEditBox[NumberColEditBoxHeader[text()='event_age']]&amp;quot;); estimatedt=estimate_prob_table[1]&amp;lt;&amp;lt;make combined data table;  //column selections are different between v18 and 19, the script below would work on yours, 19 is different estimatedt&amp;lt;&amp;lt;clear column selection; estimatedt&amp;lt;&amp;lt;select columns(&amp;quot;event_age&amp;quot;, &amp;quot;Failure Probability&amp;quot;, &amp;quot;Failure Probability Upper 95% (Likelihood)&amp;quot;, &amp;quot;Failure Probability Upper 95% (Likelihood)&amp;quot;)//select columns you need to delete estimatedt&amp;lt;&amp;lt;invert column selection; estimatedt&amp;lt;&amp;lt;delete columns();" target="_self"&gt; custom toolbar&lt;/A&gt; and have it available when the report is open.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Dec 2025 11:40:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extract-Report-Data-and-Export-it-to-Excel/m-p/920646#M107947</guid>
      <dc:creator>Ben_BarrIngh</dc:creator>
      <dc:date>2025-12-19T11:40:07Z</dc:date>
    </item>
  </channel>
</rss>

