- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Using JMP Built-In Dialogs with JSL
Hi,
I have written a rather substantial script to do some analysis which creates several data tables along the way. I'd like to be able to include some things to make this script a little more easy for someone other than me to use, such as a button to allow them to save a particular table without them having to figure out which of the 6 open tables it is.
The problem is I'm not sure how to get to a Save As dialog (which is what usually opens when you click Save on a table you've never saved before). Using something like dt = Open() creates an open file dialog, but using dt << save() doesn't open a dialog. The pick file dialog is similar, but it doesn't let you specify a new filename.
Does anyone know how to access that dialog via JSL?
Thanks!
I have written a rather substantial script to do some analysis which creates several data tables along the way. I'd like to be able to include some things to make this script a little more easy for someone other than me to use, such as a button to allow them to save a particular table without them having to figure out which of the 6 open tables it is.
The problem is I'm not sure how to get to a Save As dialog (which is what usually opens when you click Save on a table you've never saved before). Using something like dt = Open() creates an open file dialog, but using dt << save() doesn't open a dialog. The pick file dialog is similar, but it doesn't let you specify a new filename.
Does anyone know how to access that dialog via JSL?
Thanks!
5 REPLIES 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Using JMP Built-In Dialogs with JSL
Hi:
On windoze, JMP >= 8.01, the brute-force method below will invoke the File, SaveAs dialog:
On windoze, JMP >= 8.01, the brute-force method below will invoke the File, SaveAs dialog:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Using JMP Built-In Dialogs with JSL
wouldn't the following do the same?
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
main menu("Save As")
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
main menu("Save As")
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Using JMP Built-In Dialogs with JSL
That's exactly what I was looking for!
Though to get it to work for a table that's already open, I had to use dt << Bring Window to Front to get it to work on the right window.
Thanks everyone!
Though to get it to work for a table that's already open, I had to use dt << Bring Window to Front to get it to work on the right window.
Thanks everyone!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Using JMP Built-In Dialogs with JSL
Do you need the user to specify the new name or the directory or both? If it is just the name, you can easily write your own dialog to capture it and then insert it into the save command. The directory location may be a little trickier. I haven't used the pick directory command in JMP, but this sounds like a good place to use it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Using JMP Built-In Dialogs with JSL
Indeed!