Saving customized reports to data tableIt would be ideal to be able to save customized report to data table. We have several addins and customized reports where format, scripting, and some particular boxes can't be saved.
ScriptingUser InterfaceRe: Saving customized reports to data tableI will add... I've been experimenting with this as well and am learning that with effort I can write my own code to save and re-run an add-in via table script. There are some challenges with doing this and it often involves saving significant amounts of code (sometimes hundreds of lines for me) but maybe I'm just thinking about it the wrong way.
Re: Saving customized reports to data tableJeff, JMP seems to be pretty good at knowing what is in a custom window. You can right-click an outline box or other aspect and do Show Tree Structure, and JMP is able to identify all of the different Display Boxes in the window. So if JMP knows what is in the window, can that somehow be scripted? Journaling almost works, and if I recall, it is possible to save a Journal to a Data Table Script property? (As an example of "almost works"... One add-in we have uses radio boxes to help migrate a Tab Page Box, and I notice that Journaling does break that functionality, but I imagine we could manage?)
I guess what I'm saying is JMP may actually be close in this space if we can figure out how to add a little extra functionality.
Re: Saving customized reports to data table - Status changed to: DeclinedThere's really no way for us to know what's inside a custom window and how to save a script to reproduce it.
If you've got further thoughts on how we might accomplish this, please comment and we can re-open this.
Re: Saving customized reports to data tableGot it now.
The best answer, in order to retain as much interactivity as possible will be for your add-in author to provide the functionality to save a script to the data that redoes the analysis. The only thing we will likely be able to do is to create a "journaled" version of the report window that will be largely static when regenerated. I'm investigating to see if there's a way to do this today.
Re: Saving customized reports to data tableTo clarify, "result" in Tzu-Chun's note would be a pointer to a DisplayBox tree / Report object.
Re: Saving customized reports to data tableI think we would like to see if there is a chance to have
result << Save Script for All Objects To Data Table;
or
result << Save Script To Data Table;
for customized report.
Re: Saving customized reports to data tableWe are creating display boxes with our add-ins. It is easy enough to save these as .JRP. The ask is whether instead of saving as a separate .JRP, whether there is a way to embed the resulting report into a red-triangle script of the data table.
Re: Saving customized reports to data table - Status changed to: Needs InfoRe: Saving customized reports to data tableWe need some more details here.
What exactly are you suggesting be saved to the data table? The JMP built-in platforms can save scripts back to the data table. These scripts re-run the built-in platforms. They don't save a description of the tables and graphs and just re-display them.
For custom report windows built by your scripts you would need to provide an option to save a script to the data table that would re-run your custom report window.