Hi. I'm wondering if there is a way I can prevent the "Do you want to save..." message when a table is closed? That is, this message:
Why? Because I want to allow the user to make changes to the table, but I want to force them to save as a csv because we have other apps that require csv format. To do this, I'm adding an " << On Close" script:
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
a = dt << is Dirty;
Show(a);
dt << add rows(5);
b = dt << is dirty;
Show(b);
dt << On Close(
dt = CurrentDataTable();
If(dt << Is Dirty,
dt << Save As("$DESKTOP/file.csv")
)
);
However, the "Do you want to save..." message still always appears prior to saving the csv. I really don't want the user to save as both a jmp table and csv file, because then it creates 2 copies of the same doc, which will lead to confusion.
Specs:
JMP Pro 16.2.0
macOS Big Sur: 11.6.7
Thanks!