运行 Save Interactive HTML 时自动设置文件名大家好,
我想根据“另存为对话框”上的变量自动设置文件名的一部分。 可以像这样工作的东西(使用 JMP 示例):
Names Default To Here( 1 );
//This message applies to all display box objects
filename_part1="This is the long part of the filename"<BR />Open( "$SAMPLE_DATA/Big Class.jmp" );
biv = bivariate( y( :weight ), x( :height ) );
rbiv = biv << report;
rbiv << Save Interactive HTML(); <---set filename_part1
当另存为对话框打开时,文件名的第一部分被设置已经通过代码. 然后用户手动填写全名。

感谢您的帮助!!
Re: 运行 Save Interactive HTML 时自动设置文件名非常感谢 !!! 不错的解决方法!Re: 运行 Save Interactive HTML 时自动设置文件名我思考这就是你要找的:
Names Default To Here( 1 );
filename_part1="This is the long part of the filename";
Open( "$SAMPLE_DATA/Big Class.jmp" );
biv = bivariate( y( :weight ), x( :height ) );
rbiv = biv << report;
//Wait so the report shows up behind the window to choose a file
wait(0);
//Choose a file with the save flag set and the default filename set
filename_all = Pick File(
"Select JMP File",
"$DOCUMENTS",
{"HTML Files|htm;html", "All Files|*"},
1,
1,
filename_part1 || ".html"
);
//Save the file
rbiv << Save Interactive HTML( filename_all );