I have a script right now that acheives the effect I want, but I had to do it in a messy way and I'm hoping someone in the community can recommend a better way. My script allows me to select a csv file, then it cleans up the data and creates a new nicely formatted jump table. I also add a dashboard to that table. The way I do it is shown below. I take my table reference and I add a new script and I paste the dashboard script that I've created elsewhere within the parenthesis of the New Script command. This works, but the problem is that the dashboard script is so big and so messy and changes so often that I have to constantly update my main script. What I'd rather do is save off my dashboard script separately and then load it. In other words something like this:
dt << New Script(
"Dashboard",
Load("C:\jmpfiles\MySavedOffDashboardScript.jsl")
);
What I actually implemented (with ellipses hiding the messy dashboard details):
dt << New Script(
"Dashboard",
JMP App(
Set Name( "Dashboard" ),
//...the rest of the messy script here...
);