<?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 Extracting data from outline boxes through a loop in journal in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Extracting-data-from-outline-boxes-through-a-loop-in-journal/m-p/829291#M101125</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to make a script that will print data for me. I have a journal, where I want to print data for each of the Outline boxes (please see journal data.jrn).&lt;/P&gt;&lt;P&gt;I am aware I am missing quite a bit to reach the data table I wish, but I have come across the first hurdle and that is&amp;nbsp;it only prints for 1 outline box and not all. See my script below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// JMP version 16&lt;BR /&gt;sd = currentdatatable();&lt;BR /&gt;rpt = Current Journal();

// Get the number of outline boxes
numOutlineBoxes = nitems(rpt);

int = rep = sumfit = sumfitLL = sumfitUL = {};
sum = 0;


// Loop through each outline box
for (i = 1, i &amp;lt;= numOutlineBoxes, i++,
    outlineBox = rpt[i];
    
    sumfit = outlineBox[Outline Box( numOutlineBoxes )][Number Col Box( 1 )] &amp;lt;&amp;lt; Get as Matrix;
    
	sumfitLL = outlineBox[Outline Box( numOutlineBoxes )][Number Col Box( 3 )] &amp;lt;&amp;lt; Get as Matrix;
	sumfitUL = outlineBox[Outline Box( numOutlineBoxes )][Number Col Box( 4 )] &amp;lt;&amp;lt; Get as Matrix;

	sumfit_rep = Round( sumfit[2] , 3 );
	sumfit_int = Round( sumfit[3] , 3 );
	lowerCL_rep = Round( sumfitLL[2] , 3 );
	upperCL_rep = Round( sumfitUL[2] , 3 );
	lowerCL_int = Round( sumfitLL[3] , 3 );
	upperCL_int = Round( sumfitUL[3] , 3 );
	
	Insert Into( rep, Char( sumfit_rep ) || " [" || Char( lowerCL_rep ) || " ; " || Char( upperCL_rep ) || "]" );
	Insert Into( int, Char ( sumfit_int ) || " [" || Char( lowerCL_int ) || " ; " || Char( upperCL_int ) || "]" );
	
	// Get By Group column
	//whereCol = Word( 2, ((rep &amp;lt;&amp;lt; parent)[Text Box( 1 )]) &amp;lt;&amp;lt; get text, ":=)" );
		
	term = outlineBox[Outline Box( numOutlineBoxes )][String Col Box( 1 )] &amp;lt;&amp;lt; Get();
    
    sum = sum + 1
);


// Create the table
dlg = New Window( "Custom Report",
	Outline Box( "Selected Values",
		Lineup Box( N Col( 2 ), Text Box( "Factor of Interest: " ), Text Box( term[1] ) ),
		Spacer Box( size( 0, 10 ) ),
		tb = Table Box(
			String Col Box( "Paramenter", testvalue ),
			//String Col Box( whereCol, repeat(ByGroups, sum) ),
			String Col Box( "Repeatability, " || term[1], rep ),
			String Col Box( "Intermediate precision, " || term[2], int ),
		)
	)
);

tb &amp;lt;&amp;lt; Set Shade Headings( 0 ); // Turn off shaded table headings.
tb &amp;lt;&amp;lt; Set Column Borders( 1 ); // Turn off table column borders.
tb &amp;lt;&amp;lt; Set row Borders( 1 );
tb &amp;lt;&amp;lt; border( 1 );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The print looks as follows:&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="Juli_0-1737988467054.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72285i806B85145409AEC4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Juli_0-1737988467054.png" alt="Juli_0-1737988467054.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the final stage, I would like the pint to look as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Juli_2-1737988885926.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72287i080666EB06A00053/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Juli_2-1737988885926.png" alt="Juli_2-1737988885926.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To sum up, I have the following steps that need to be fixed:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Get the loop to work so that all Outline boxes are taken into account&lt;/P&gt;&lt;P&gt;2. Get it to include parameter and batch&lt;/P&gt;&lt;P&gt;3. Get it to dividedly print repeatability and intermediate with the laboratory AA/BB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you can help me with this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Julie&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jan 2025 14:44:18 GMT</pubDate>
    <dc:creator>Juli</dc:creator>
    <dc:date>2025-01-27T14:44:18Z</dc:date>
    <item>
      <title>Extracting data from outline boxes through a loop in journal</title>
      <link>https://community.jmp.com/t5/Discussions/Extracting-data-from-outline-boxes-through-a-loop-in-journal/m-p/829291#M101125</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to make a script that will print data for me. I have a journal, where I want to print data for each of the Outline boxes (please see journal data.jrn).&lt;/P&gt;&lt;P&gt;I am aware I am missing quite a bit to reach the data table I wish, but I have come across the first hurdle and that is&amp;nbsp;it only prints for 1 outline box and not all. See my script below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// JMP version 16&lt;BR /&gt;sd = currentdatatable();&lt;BR /&gt;rpt = Current Journal();

// Get the number of outline boxes
numOutlineBoxes = nitems(rpt);

int = rep = sumfit = sumfitLL = sumfitUL = {};
sum = 0;


// Loop through each outline box
for (i = 1, i &amp;lt;= numOutlineBoxes, i++,
    outlineBox = rpt[i];
    
    sumfit = outlineBox[Outline Box( numOutlineBoxes )][Number Col Box( 1 )] &amp;lt;&amp;lt; Get as Matrix;
    
	sumfitLL = outlineBox[Outline Box( numOutlineBoxes )][Number Col Box( 3 )] &amp;lt;&amp;lt; Get as Matrix;
	sumfitUL = outlineBox[Outline Box( numOutlineBoxes )][Number Col Box( 4 )] &amp;lt;&amp;lt; Get as Matrix;

	sumfit_rep = Round( sumfit[2] , 3 );
	sumfit_int = Round( sumfit[3] , 3 );
	lowerCL_rep = Round( sumfitLL[2] , 3 );
	upperCL_rep = Round( sumfitUL[2] , 3 );
	lowerCL_int = Round( sumfitLL[3] , 3 );
	upperCL_int = Round( sumfitUL[3] , 3 );
	
	Insert Into( rep, Char( sumfit_rep ) || " [" || Char( lowerCL_rep ) || " ; " || Char( upperCL_rep ) || "]" );
	Insert Into( int, Char ( sumfit_int ) || " [" || Char( lowerCL_int ) || " ; " || Char( upperCL_int ) || "]" );
	
	// Get By Group column
	//whereCol = Word( 2, ((rep &amp;lt;&amp;lt; parent)[Text Box( 1 )]) &amp;lt;&amp;lt; get text, ":=)" );
		
	term = outlineBox[Outline Box( numOutlineBoxes )][String Col Box( 1 )] &amp;lt;&amp;lt; Get();
    
    sum = sum + 1
);


// Create the table
dlg = New Window( "Custom Report",
	Outline Box( "Selected Values",
		Lineup Box( N Col( 2 ), Text Box( "Factor of Interest: " ), Text Box( term[1] ) ),
		Spacer Box( size( 0, 10 ) ),
		tb = Table Box(
			String Col Box( "Paramenter", testvalue ),
			//String Col Box( whereCol, repeat(ByGroups, sum) ),
			String Col Box( "Repeatability, " || term[1], rep ),
			String Col Box( "Intermediate precision, " || term[2], int ),
		)
	)
);

tb &amp;lt;&amp;lt; Set Shade Headings( 0 ); // Turn off shaded table headings.
tb &amp;lt;&amp;lt; Set Column Borders( 1 ); // Turn off table column borders.
tb &amp;lt;&amp;lt; Set row Borders( 1 );
tb &amp;lt;&amp;lt; border( 1 );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The print looks as follows:&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="Juli_0-1737988467054.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72285i806B85145409AEC4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Juli_0-1737988467054.png" alt="Juli_0-1737988467054.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the final stage, I would like the pint to look as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Juli_2-1737988885926.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72287i080666EB06A00053/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Juli_2-1737988885926.png" alt="Juli_2-1737988885926.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To sum up, I have the following steps that need to be fixed:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Get the loop to work so that all Outline boxes are taken into account&lt;/P&gt;&lt;P&gt;2. Get it to include parameter and batch&lt;/P&gt;&lt;P&gt;3. Get it to dividedly print repeatability and intermediate with the laboratory AA/BB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you can help me with this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Julie&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 14:44:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extracting-data-from-outline-boxes-through-a-loop-in-journal/m-p/829291#M101125</guid>
      <dc:creator>Juli</dc:creator>
      <dc:date>2025-01-27T14:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting data from outline boxes through a loop in journal</title>
      <link>https://community.jmp.com/t5/Discussions/Extracting-data-from-outline-boxes-through-a-loop-in-journal/m-p/829303#M101126</link>
      <description>&lt;P&gt;Is there some specific reason for using Journal instead of accessing the report before it is made into a journal? Also have you tried building the report from the tables you can get using Make Combined Data Table?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1737989583163.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72288i2CC41B7033E2451A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1737989583163.png" alt="jthi_0-1737989583163.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1737989590210.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72289iB4D8003862608900/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1737989590210.png" alt="jthi_1-1737989590210.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 14:53:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extracting-data-from-outline-boxes-through-a-loop-in-journal/m-p/829303#M101126</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-01-27T14:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting data from outline boxes through a loop in journal</title>
      <link>https://community.jmp.com/t5/Discussions/Extracting-data-from-outline-boxes-through-a-loop-in-journal/m-p/829329#M101128</link>
      <description>&lt;P&gt;And then if you have enough patience (I don't with Tabulate...) you might be able to create quite OK report using tabulate&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1737990769686.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72290i373D4D9EE3DF1D37/image-size/large?v=v2&amp;amp;px=999" role="button" title="jthi_0-1737990769686.png" alt="jthi_0-1737990769686.png" /&gt;&lt;/span&gt;&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="jthi_2-1737990975753.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72293iD86A8FDDE529BA4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="jthi_2-1737990975753.png" alt="jthi_2-1737990975753.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_3-1737991045233.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72295iB5ADB2E4A51ECFA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="jthi_3-1737991045233.png" alt="jthi_3-1737991045233.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This requires JMP17 or JMP18 (packing)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_4-1737991054731.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72296i8F604AFC2270372A/image-size/large?v=v2&amp;amp;px=999" role="button" title="jthi_4-1737991054731.png" alt="jthi_4-1737991054731.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 15:18:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extracting-data-from-outline-boxes-through-a-loop-in-journal/m-p/829329#M101128</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-01-27T15:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting data from outline boxes through a loop in journal</title>
      <link>https://community.jmp.com/t5/Discussions/Extracting-data-from-outline-boxes-through-a-loop-in-journal/m-p/829339#M101131</link>
      <description>&lt;P&gt;Given that your Journal is referenced as&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;rpt = Current Journal();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and you are using&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Get the number of outline boxes
numOutlineBoxes = nitems(rpt);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to get the number of OutlineBoxes, it will always return 1.&amp;nbsp; You should be using Xpath() to return a list of all of the OutlineBoxes.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;numOutlineBoxes = nitems(rpt &amp;lt;&amp;lt; xpath( "//OutlineBox" )) ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;however it will find 60 outline boxes.&amp;nbsp; So to narrow this down, you can get a list of the primary headers with&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;majorrptList= rpt &amp;lt;&amp;lt; xpath( "//OutlineBox[contains(text(),'Variability Gauge')]" ) &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That will give you pointers to each of your By groups output&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 15:37:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extracting-data-from-outline-boxes-through-a-loop-in-journal/m-p/829339#M101131</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-01-27T15:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting data from outline boxes through a loop in journal</title>
      <link>https://community.jmp.com/t5/Discussions/Extracting-data-from-outline-boxes-through-a-loop-in-journal/m-p/829450#M101148</link>
      <description>&lt;P&gt;Hi Jthi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply. The reason why journal is used instead of report is because I cannot save the report where it still contains the standard deviation outline box. Therefore, I had to save it to a journal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try to look into this option about making it into a combined table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Julie&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 08:43:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extracting-data-from-outline-boxes-through-a-loop-in-journal/m-p/829450#M101148</guid>
      <dc:creator>Juli</dc:creator>
      <dc:date>2025-01-28T08:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting data from outline boxes through a loop in journal</title>
      <link>https://community.jmp.com/t5/Discussions/Extracting-data-from-outline-boxes-through-a-loop-in-journal/m-p/829467#M101156</link>
      <description>&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply. I have tried this, where I added changed from numOutlineBoxes to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;majorrptList = rpt &amp;lt;&amp;lt; xpath( "//OutlineBox[contains(text(),'Standard Deviations')]" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script saves information to&amp;nbsp;&lt;CODE class=" language-jsl"&gt;sumfit_rep&lt;/CODE&gt;&amp;nbsp;and&amp;nbsp;&lt;CODE class=" language-jsl"&gt;sumfit_int&lt;/CODE&gt;, but it does not save to&amp;nbsp;&lt;CODE class=" language-jsl"&gt;lowerCL_rep &lt;/CODE&gt;,&amp;nbsp; &lt;CODE class=" language-jsl"&gt;upperCL_rep &lt;/CODE&gt;,&amp;nbsp;&lt;CODE class=" language-jsl"&gt;lowerCL_int &lt;/CODE&gt;or&amp;nbsp;&lt;CODE class=" language-jsl"&gt;upperCL_int &lt;/CODE&gt;&amp;nbsp;during the part below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;	sumfit = outlineBox[Outline Box( majorrptList )][Number Col Box( 1 )] &amp;lt;&amp;lt; Get as Matrix;
    
	sumfitLL = outlineBox[Outline Box( majorrptList )][Number Col Box( 3 )] &amp;lt;&amp;lt; Get as Matrix;
	sumfitUL = outlineBox[Outline Box( majorrptList )][Number Col Box( 4 )] &amp;lt;&amp;lt; Get as Matrix;

	sumfit_rep = Round( sumfit[2] , 3 );
	sumfit_int = Round( sumfit[3] , 3 );
	lowerCL_rep = Round( sumfitLL[2] , 3 );
	upperCL_rep = Round( sumfitUL[2] , 3 );
	lowerCL_int = Round( sumfitLL[3] , 3 );
	upperCL_int = Round( sumfitUL[3] , 3 );
	
	Insert Into( rep, Char( sumfit_rep ) || " [" || Char( lowerCL_rep ) || " ; " || Char( upperCL_rep ) || "]" );
	Insert Into( int, Char ( sumfit_int ) || " [" || Char( lowerCL_int ) || " ; " || Char( upperCL_int ) || "]" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I am not sure how to go from here to get the table I want with information about sample/batch and parameter, I have tried to make a combined table and then extract it from there, but it does something crazy and I am highly confused. I have attached the combined table (combined data table for int rep test script) and the script (int rep test script with combined table). I hope you will take a look and see if you can find the reason for chaos :)&lt;/img&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 13:17:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extracting-data-from-outline-boxes-through-a-loop-in-journal/m-p/829467#M101156</guid>
      <dc:creator>Juli</dc:creator>
      <dc:date>2025-01-28T13:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting data from outline boxes through a loop in journal</title>
      <link>https://community.jmp.com/t5/Discussions/Extracting-data-from-outline-boxes-through-a-loop-in-journal/m-p/829499#M101163</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;majorrptList = rpt &amp;lt;&amp;lt; xpath( "//OutlineBox[contains(text(),'Standard Deviations')]" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;returns a list of the pointers to all of the different Outline Boxes in your journal, that have the title "Standard Deviations".&lt;/P&gt;
&lt;P&gt;The returned list is:&lt;/P&gt;
&lt;PRE&gt;{DisplayBox[OutlineBox], DisplayBox[OutlineBox], DisplayBox[OutlineBox], DisplayBox[
OutlineBox], DisplayBox[OutlineBox], DisplayBox[OutlineBox], DisplayBox[OutlineBox],
DisplayBox[OutlineBox], DisplayBox[OutlineBox], DisplayBox[OutlineBox], DisplayBox[
OutlineBox], DisplayBox[OutlineBox], DisplayBox[OutlineBox], DisplayBox[OutlineBox],
DisplayBox[OutlineBox], DisplayBox[OutlineBox], DisplayBox[OutlineBox], DisplayBox[
OutlineBox], DisplayBox[OutlineBox], DisplayBox[OutlineBox]}&lt;/PRE&gt;
&lt;P&gt;If you want a count of the number of the Outline Boxes, you would need to do something like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;numOutlineBoxes = N Items( rpt &amp;lt;&amp;lt; xpath( "//OutlineBox[contains(text(),'Standard Deviations')]" ));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Looking at the remainder of your JSL, it appears that you are confused with how to deal with the 20 different Standard Deviation Table Boxes.&amp;nbsp; You seem to want to take the count of the number of Standard Deviation Outline Boxes and somehow retrieve all of the data from all of the 20 Table Boxes all at once.&amp;nbsp; Your syntax is also incorrect, and returns an error message.&amp;nbsp; What I believe you want is:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;sumFit = majorrptList[1][Number Col Box( 1 )] &amp;lt;&amp;lt; Get as Matrix;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Which returns&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[3.67530167633204, 3.67530167633204, 7.01812976988444]&lt;/PRE&gt;
&lt;P&gt;Which comes from the 1st Standard Deviation Outline Box in your journal&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1738077503661.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72328i664E3B1CB367512E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1738077503661.png" alt="txnelson_0-1738077503661.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You seem to want to use numOutlineBoxes in your reference, in an attempt to somehow get all of the data from all of the Table Boxes.&amp;nbsp; However, since the value of numOutlineBoxes is 20, what running&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;numOutlineBoxes = N Items( rpt &amp;lt;&amp;lt; xpath( "//OutlineBox[contains(text(),'Standard Deviations')]" ));
sumFit = majorrptList[numOutlineBoxes][Number Col Box( 1 )] &amp;lt;&amp;lt; Get as Matrix;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;what you get is&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[0.00401248052954899, 0.00401248052954899, 0.0399901237806931]&lt;/PRE&gt;
&lt;P&gt;which are the values from the 20th Standard Deviations Outline Box&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_1-1738077940567.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72329i20FE8E7CC44A56E8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_1-1738077940567.png" alt="txnelson_1-1738077940567.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It appears that you are attempting to run before learning to walk.&amp;nbsp; I suggest you slow down and take the time to read though the Scripting Guide to gain a better understanding of JSL before you take on such a large project.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 15:28:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extracting-data-from-outline-boxes-through-a-loop-in-journal/m-p/829499#M101163</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-01-28T15:28:44Z</dc:date>
    </item>
  </channel>
</rss>

