<?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 Multi-tab dashboard from multiple data tables in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Multi-tab-dashboard-from-multiple-data-tables/m-p/643247#M83990</link>
    <description>&lt;P&gt;Hi, I am creating a multi-tabbed dashboard based on the script given in the following discovery talk:&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discovery-Summit-Americas-2021/One-Multi-tabbed-Filterable-Dashboard-2021-US-30MP-803/ta-p/398667" target="_blank" rel="noopener"&gt;https://community.jmp.com/t5/Discovery-Summit-Americas-2021/One-Multi-tabbed-Filterable-Dashboard-2021-US-30MP-803/ta-p/398667&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script used to combine several dashboards is the following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dashes = Find All(Reports);

tb = Expr(Tab Box());

For(i = 1, i&amp;lt;= N Items(dashes), i ++,
	
	tabPage = Expr(Tab Page Box());
	dfcb = Expr(Data Filter Context Box());
	lub = Expr(Line Up Box(N Col(2)));
	hlb = Expr(H List Box());

	//Get Data table name to use with the data filter
	wintitle = dashes[i] &amp;lt;&amp;lt; Get Window Title;
	wordone = Word(1, wintitle, "-");
	wordtwo = Word(2, wintitle, "-");
	dtname = Substr(wordone, 1, Length(wordone)-1 );
	dt = Eval Expr(Data Table(Expr(dtName)));
	
	//Get dashboard name 
	dashName = Substr(wordtwo, 2);
	
	failed = 0;
	j = 1;
	//Loop through the tab page boxes in the dashboard, and extract the scripts
	While(failed ==0,
		Try(tpb = dashes[i] &amp;lt;&amp;lt; Find(TabPageBox(j)),
			failed = 1; Continue();
		);
		//Try to get the script from the display box if it exisits
		Try(obj = tpb &amp;lt;&amp;lt; Get Scriptable Object;
			script = obj &amp;lt;&amp;lt; Get Script,
			j ++; Continue();
		);
		//If the script is for the local data filter add the script to the H List Box
		If(Char(Head(Name Expr(script))) == "Data Filter",
			FilterExprStr = char(NameExpr(dt)) || " &amp;lt;&amp;lt; " || char(Name Expr(script));
			FilterExpr = Parse(FilterExprStr);
			Insert Into(hlb,NameExpr(FilterExpr));
		,
			//Else add it to the lineup box
			If( Char(Name Expr(script)) != "Scriptable[]",
				reportExprStr = char(NameExpr(dt)) || " &amp;lt;&amp;lt; " || char(Name Expr(script));
				reportExpr = Parse(reportExprStr);
				scrollbox = Expr(Scroll Box());
				Insert Into(scrollbox, Name Expr(reportExpr));
				Insert Into(lub,Name Expr(scrollbox));	
			);
			
		);
		
		
		j ++;
	);
	
	//Build up the display boxes
	Insert Into(hlb, Name Expr(lub));
	Insert Into(dfcb, Name Expr(hlb));

	Insert Into(tabPage, Eval Expr(Title(Expr(dashName))), 1);
	Insert Into(tabPage, Name Expr(dfcb), 2);
	
	Insert Into(tb, Name Expr(tabPage));
);

//Create combined dashboard window
New Window("Ac-225 trending tool, v0.1", tb);

//Close all the individual dash reports
For( w = 1, w &amp;lt;= N Items(dashes), w ++,
	dashes[w] &amp;lt;&amp;lt; Close Window;
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, in contrast to the discovery talk, my dashboards are based on different data tables, and not a single data table.&lt;BR /&gt;I have all data tables and dashboards open, and run the above script to combine all dashboards into one multi-tabbed dashboard. This gives the following error message:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Steffen_Bugge_0-1686906136256.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53918i0381E9E5BE23591E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Steffen_Bugge_0-1686906136256.png" alt="Steffen_Bugge_0-1686906136256.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It looks like it is not able to extract the local data filters from my dashboards. Any suggestion as to how I can change the generic script to be able to combine all open dashboards?&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jun 2023 09:06:51 GMT</pubDate>
    <dc:creator>Steffen_Bugge</dc:creator>
    <dc:date>2023-06-16T09:06:51Z</dc:date>
    <item>
      <title>Multi-tab dashboard from multiple data tables</title>
      <link>https://community.jmp.com/t5/Discussions/Multi-tab-dashboard-from-multiple-data-tables/m-p/643247#M83990</link>
      <description>&lt;P&gt;Hi, I am creating a multi-tabbed dashboard based on the script given in the following discovery talk:&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discovery-Summit-Americas-2021/One-Multi-tabbed-Filterable-Dashboard-2021-US-30MP-803/ta-p/398667" target="_blank" rel="noopener"&gt;https://community.jmp.com/t5/Discovery-Summit-Americas-2021/One-Multi-tabbed-Filterable-Dashboard-2021-US-30MP-803/ta-p/398667&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script used to combine several dashboards is the following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dashes = Find All(Reports);

tb = Expr(Tab Box());

For(i = 1, i&amp;lt;= N Items(dashes), i ++,
	
	tabPage = Expr(Tab Page Box());
	dfcb = Expr(Data Filter Context Box());
	lub = Expr(Line Up Box(N Col(2)));
	hlb = Expr(H List Box());

	//Get Data table name to use with the data filter
	wintitle = dashes[i] &amp;lt;&amp;lt; Get Window Title;
	wordone = Word(1, wintitle, "-");
	wordtwo = Word(2, wintitle, "-");
	dtname = Substr(wordone, 1, Length(wordone)-1 );
	dt = Eval Expr(Data Table(Expr(dtName)));
	
	//Get dashboard name 
	dashName = Substr(wordtwo, 2);
	
	failed = 0;
	j = 1;
	//Loop through the tab page boxes in the dashboard, and extract the scripts
	While(failed ==0,
		Try(tpb = dashes[i] &amp;lt;&amp;lt; Find(TabPageBox(j)),
			failed = 1; Continue();
		);
		//Try to get the script from the display box if it exisits
		Try(obj = tpb &amp;lt;&amp;lt; Get Scriptable Object;
			script = obj &amp;lt;&amp;lt; Get Script,
			j ++; Continue();
		);
		//If the script is for the local data filter add the script to the H List Box
		If(Char(Head(Name Expr(script))) == "Data Filter",
			FilterExprStr = char(NameExpr(dt)) || " &amp;lt;&amp;lt; " || char(Name Expr(script));
			FilterExpr = Parse(FilterExprStr);
			Insert Into(hlb,NameExpr(FilterExpr));
		,
			//Else add it to the lineup box
			If( Char(Name Expr(script)) != "Scriptable[]",
				reportExprStr = char(NameExpr(dt)) || " &amp;lt;&amp;lt; " || char(Name Expr(script));
				reportExpr = Parse(reportExprStr);
				scrollbox = Expr(Scroll Box());
				Insert Into(scrollbox, Name Expr(reportExpr));
				Insert Into(lub,Name Expr(scrollbox));	
			);
			
		);
		
		
		j ++;
	);
	
	//Build up the display boxes
	Insert Into(hlb, Name Expr(lub));
	Insert Into(dfcb, Name Expr(hlb));

	Insert Into(tabPage, Eval Expr(Title(Expr(dashName))), 1);
	Insert Into(tabPage, Name Expr(dfcb), 2);
	
	Insert Into(tb, Name Expr(tabPage));
);

//Create combined dashboard window
New Window("Ac-225 trending tool, v0.1", tb);

//Close all the individual dash reports
For( w = 1, w &amp;lt;= N Items(dashes), w ++,
	dashes[w] &amp;lt;&amp;lt; Close Window;
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, in contrast to the discovery talk, my dashboards are based on different data tables, and not a single data table.&lt;BR /&gt;I have all data tables and dashboards open, and run the above script to combine all dashboards into one multi-tabbed dashboard. This gives the following error message:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Steffen_Bugge_0-1686906136256.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53918i0381E9E5BE23591E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Steffen_Bugge_0-1686906136256.png" alt="Steffen_Bugge_0-1686906136256.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It looks like it is not able to extract the local data filters from my dashboards. Any suggestion as to how I can change the generic script to be able to combine all open dashboards?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 09:06:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Multi-tab-dashboard-from-multiple-data-tables/m-p/643247#M83990</guid>
      <dc:creator>Steffen_Bugge</dc:creator>
      <dc:date>2023-06-16T09:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-tab dashboard from multiple data tables</title>
      <link>https://community.jmp.com/t5/Discussions/Multi-tab-dashboard-from-multiple-data-tables/m-p/644471#M84121</link>
      <description>&lt;P&gt;Or perhaps other solutions to combine several open dashboards into on multi-tabbed dashboard?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 08:10:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Multi-tab-dashboard-from-multiple-data-tables/m-p/644471#M84121</guid>
      <dc:creator>Steffen_Bugge</dc:creator>
      <dc:date>2023-06-21T08:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-tab dashboard from multiple data tables</title>
      <link>https://community.jmp.com/t5/Discussions/Multi-tab-dashboard-from-multiple-data-tables/m-p/658204#M84750</link>
      <description>&lt;P&gt;UPDATE:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error message above has nothing to do with the data source being multiple tables. On the other hand, if the name of one of the data tables contains a&amp;nbsp;hyphen (-), the CombineDashboards.jsl will not work. Removing the&amp;nbsp;hyphen from the name solves the problem.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 19:47:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Multi-tab-dashboard-from-multiple-data-tables/m-p/658204#M84750</guid>
      <dc:creator>Steffen_Bugge</dc:creator>
      <dc:date>2023-07-13T19:47:44Z</dc:date>
    </item>
  </channel>
</rss>

