I have a long script where in the first part different data tables are joined together and some calculations are made. The result of this part are 3 data tables and several graphs in one of the data tables. The second part of the script would create a dashboard from the already made graphs/plots. If I run the script it makes an empty dashboard, but if I run the first part then select the data table containing the graphs/plots and run the second part of the script then the dashboard is made correctly. I tried to put a dt = Data Table("Name"), before JMP App( but it has not worked. I also tried to put the data table name in Location( "" ), that has not worked, however when I put "Name" in location I got a pop-up question to choose the data table.
JMP App(
Set Name( "Dashboard" ),
Set Description( "Six reports arranged in a grid" ),
Auto Launch( 1 ),
Snap To Grid( 1 ),
Show Grid( 1 ),
Show Properties( 0 ),
Show Sources( 1 ),
Group By Category( 0 ),
Dashboard Mode( 1 ),
Parameters,
Tables(
DataTable1 = GuiTable(
Set Path( "" ),
Set Label( "Plots" ),
Location( "" ),
Invisible( 0 )
)
),
您可以為位置部分設定不同的字串,我不知道這些意味著什麼,但我至少看到了:
- “嵌入腳本”
- “姓名”
- “當前數據表”
- “完整路徑”
基於不同的字串,我很可能會嘗試使用當前資料表或嵌入式腳本(但這取決於您的完整應用程式)。或者,如果您只需要一個儀表板,我會跳過 JMP 應用程式並使用新視窗/JMP 專案。