<?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: adding a table on the firts tab of a dashboard in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/adding-a-table-on-the-firts-tab-of-a-dashboard/m-p/798524#M97444</link>
    <description>&lt;P&gt;You can for example use get as report&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
New Window("Example",
	tb = Tab Box(
		Tab Page Box("First Tab", Tip("First Tab Tooltip"), Button Box("Press One")),
		Tab Page Box("Second Tab", Closeable(1), Button Box("Press Two")),
		Tab Page Box("Third Tab", Icon("Nominal"), Button Box("Press Three"))
	)
);
Wait(1);

dt = open("$SAMPLE_DATA/Big Class.jmp");

tb &amp;lt;&amp;lt; Insert(1, Tab Page Box(Title("To first"), 
	dt &amp;lt;&amp;lt; get as report
));
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 13 Sep 2024 09:25:53 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-09-13T09:25:53Z</dc:date>
    <item>
      <title>adding a table on the firts tab of a dashboard</title>
      <link>https://community.jmp.com/t5/Discussions/adding-a-table-on-the-firts-tab-of-a-dashboard/m-p/798498#M97434</link>
      <description>&lt;P&gt;Can i add in the first tab a table ?&amp;nbsp; like the example.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );


// Create a table for the first tab
tableBox = dt &amp;lt;&amp;lt; Summary(
    Group( :sex ),
    Mean( :weight ),
    Mean( :height ),
    N
);

gb_collector = Tab Box( "Dashboard",
    V List Box(
        tableBox
    )
	
);


For( i = 1, i &amp;lt;= 20, i++,
    // Column box for plot of all batches
    col1 = Col Box( "All Batches" || Char( i ) );

    // Create the first Graph Builder plot
    gb = Expr(
        dt &amp;lt;&amp;lt; Graph Builder(
            invisible,
            Show Control Panel( 0 ),
            Variables( X( :weight ), Y( :height ), Overlay( :sex ) ),
            Elements( Points( X, Y, Legend( 9 ) ), Line Of Fit( X, Y, Legend( 11 ) ) )
        )
    );
    col1 &amp;lt;&amp;lt; Append( gb );

    // Create column boxes for the Graph Builder plots
    col2 = Col Box( "Actual Data " || Char( i ) );
    col3 = Col Box( "Actual  " || Char( i ) );

    // Loop to create and append multiple Graph Builder plots to col2 and col3
    For( j = 1, j &amp;lt;= 2, j++,
        gbb = Expr(
            dt &amp;lt;&amp;lt; Graph Builder(
                invisible,
                Show Control Panel( 0 ),
                Variables( X( :weight ), Y( :height ), Overlay( :sex ) ),
                Elements( Points( X, Y, Legend( 5 ) ), Line Of Fit( X, Y, Legend( 11 ) ) )
            )
        );
        col2 &amp;lt;&amp;lt; Append( gbb );

        gbbb = Expr(
            dt &amp;lt;&amp;lt; Graph Builder(
                invisible,
                Show Control Panel( 0 ),
                Variables( X( :weight ), Y( :height ), Overlay( :sex ) ),
                Elements( Points( X, Y, Legend( 9 ) ), Line Of Fit( X, Y, Legend( 11 ) ) )
            )
        );
        col3 &amp;lt;&amp;lt; Append( gbbb );
    );

    // Create a tab for col1, col2, and col3 and append it to gb_collector
    tab = Tab Page Box( Char(i),
        V List Box(
            col1,
            H List Box( col2, col3 ) // Placing the two plots next to each other
        )
    );
    gb_collector &amp;lt;&amp;lt; Append( tab );

);

gb_collector &amp;lt;&amp;lt; Dockable( 1 );
gb_collector &amp;lt;&amp;lt; Set Overflow Enabled( 1 );

nw = New Window( "Dashboard",
    gb_collector
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Sep 2024 07:19:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/adding-a-table-on-the-firts-tab-of-a-dashboard/m-p/798498#M97434</guid>
      <dc:creator>ConvergentWhale</dc:creator>
      <dc:date>2024-09-13T07:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: adding a table on the firts tab of a dashboard</title>
      <link>https://community.jmp.com/t5/Discussions/adding-a-table-on-the-firts-tab-of-a-dashboard/m-p/798511#M97436</link>
      <description>&lt;P&gt;You can use Insert with Tab Box to determine into which position display box should be added&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1726214720593.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/68215iB6F6A83F381E77DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1726214720593.png" alt="jthi_0-1726214720593.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;With index&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
New Window("Example",
	tb = Tab Box(
		Tab Page Box("First Tab", Tip("First Tab Tooltip"), Button Box("Press One")),
		Tab Page Box("Second Tab", Closeable(1), Button Box("Press Two")),
		Tab Page Box("Third Tab", Icon("Nominal"), Button Box("Press Three"))
	)
);
Wait(1);
tb &amp;lt;&amp;lt; Insert(1, Tab Page Box(Title("To first"), Button Box("Press Four")));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1726214743301.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/68216iCDDD084D86CDB729/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1726214743301.png" alt="jthi_1-1726214743301.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 08:05:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/adding-a-table-on-the-firts-tab-of-a-dashboard/m-p/798511#M97436</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-09-13T08:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: adding a table on the firts tab of a dashboard</title>
      <link>https://community.jmp.com/t5/Discussions/adding-a-table-on-the-firts-tab-of-a-dashboard/m-p/798513#M97438</link>
      <description>&lt;P&gt;thank you ! but the thing is that i am straggling printing the table on a tab.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );


gb_collector = Tab Box();


For( i = 1, i &amp;lt;= 20, i++,
    // Column box for plot of all batches
    col1 = Col Box( "All Batches" || Char( i ) );

    // Create the first Graph Builder plot
    gb = Expr(
        dt &amp;lt;&amp;lt; Graph Builder(
            invisible,
            Show Control Panel( 0 ),
            Variables( X( :weight ), Y( :height ), Overlay( :sex ) ),
            Elements( Points( X, Y, Legend( 9 ) ), Line Of Fit( X, Y, Legend( 11 ) ) )
        )
    );
    col1 &amp;lt;&amp;lt; Append( gb );

    // Create column boxes for the Graph Builder plots
    col2 = Col Box( "Actual Data " || Char( i ) );
    col3 = Col Box( "Actual  " || Char( i ) );

    // Loop to create and append multiple Graph Builder plots to col2 and col3
    For( j = 1, j &amp;lt;= 2, j++,
        gbb = Expr(
            dt &amp;lt;&amp;lt; Graph Builder(
                invisible,
                Show Control Panel( 0 ),
                Variables( X( :weight ), Y( :height ), Overlay( :sex ) ),
                Elements( Points( X, Y, Legend( 5 ) ), Line Of Fit( X, Y, Legend( 11 ) ) )
            )
        );
        col2 &amp;lt;&amp;lt; Append( gbb );

        gbbb = Expr(
            dt &amp;lt;&amp;lt; Graph Builder(
                invisible,
                Show Control Panel( 0 ),
                Variables( X( :weight ), Y( :height ), Overlay( :sex ) ),
                Elements( Points( X, Y, Legend( 9 ) ), Line Of Fit( X, Y, Legend( 11 ) ) )
            )
        );
        col3 &amp;lt;&amp;lt; Append( gbbb );
    );

    // Create a tab for col1, col2, and col3 and append it to gb_collector
    tab = Tab Page Box( Char(i),
        V List Box(
            col1,
            H List Box( col2, col3 ) // Placing the two plots next to each other
        )
    );
    gb_collector &amp;lt;&amp;lt; Append( tab );

);


// Create a table for the first tab
tableBox = Expr(dt &amp;lt;&amp;lt; Summary(
    Group( :sex ),
    Mean( :weight ),
    Mean( :height ),
    N
));



// Create the "Results" tab
resultsTab = Tab Page Box("Results", tableBox);

// Insert the "Results" tab at the first position
gb_collector &amp;lt;&amp;lt; Insert(1, resultsTab);


gb_collector &amp;lt;&amp;lt; Dockable( 1 );
gb_collector &amp;lt;&amp;lt; Set Overflow Enabled( 1 );

nw = New Window( "Dashboard",
    gb_collector
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Sep 2024 08:29:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/adding-a-table-on-the-firts-tab-of-a-dashboard/m-p/798513#M97438</guid>
      <dc:creator>ConvergentWhale</dc:creator>
      <dc:date>2024-09-13T08:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: adding a table on the firts tab of a dashboard</title>
      <link>https://community.jmp.com/t5/Discussions/adding-a-table-on-the-firts-tab-of-a-dashboard/m-p/798524#M97444</link>
      <description>&lt;P&gt;You can for example use get as report&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
New Window("Example",
	tb = Tab Box(
		Tab Page Box("First Tab", Tip("First Tab Tooltip"), Button Box("Press One")),
		Tab Page Box("Second Tab", Closeable(1), Button Box("Press Two")),
		Tab Page Box("Third Tab", Icon("Nominal"), Button Box("Press Three"))
	)
);
Wait(1);

dt = open("$SAMPLE_DATA/Big Class.jmp");

tb &amp;lt;&amp;lt; Insert(1, Tab Page Box(Title("To first"), 
	dt &amp;lt;&amp;lt; get as report
));
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Sep 2024 09:25:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/adding-a-table-on-the-firts-tab-of-a-dashboard/m-p/798524#M97444</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-09-13T09:25:53Z</dc:date>
    </item>
  </channel>
</rss>

