JSL:將儀表板另存為交互式html我通過腳本構建了儀表板,並希望將其另存為交互式html,然後將其關閉。 該腳本運行良好,但保存和關閉卻不行。
我嘗試了類似的嘗試,但是沒有用。
感謝您的幫助! 提前致謝!
馬庫斯
Names Default To Here( 1 );
Open("$SAMPLE_DATA/Quality Control/Steam Turbine Historical.jmp");
app = JMP App();
app << Open File( "$SAMPLE_DASHBOARDS/Instant Dashboard.jmpappsource" );
box = app << Run;
box << save html("C:\Users\Markus\Desktop\test.htm");
close(box);腳本編寫回复:JSL:將儀表板另存為交互式html我認為運行應用程序命令的類型與您預期的不同,
嘗試附帶的腳本。
Names Default To Here( 1 );
tmp_path = Substitute( Right( Convert File Path( "$TEMP" ), Length( Convert File Path( "$TEMP" ) ) - 1 ), "/", "\" );
Open( "$SAMPLE_DATA/Quality Control/Steam Turbine Historical.jmp" );
app = JMP App();
app << Open File( "$SAMPLE_DASHBOARDS/Instant Dashboard.jmpappsource" );
box = app << Run;
Show Properties( box );
Show( box );
(box << get windows)[1] << save html( "$TEMP\test.htm" );
回复:JSL:將儀表板另存為交互式html嗨,喬治,
感謝您的建議。 你寫。 現在正在工作。
您還有想法將其另存為交互式(html5)文件嗎?
問候
馬庫斯
回复:JSL:將儀表板另存為交互式htmlPS:我從社區中提取了一個示例,並添加了節省部分。 實際上,我構建了一個看起來像這樣的腳本(縮寫(...),因為它很長)。
HTL = JMP App( ... );
box = htl << run;
Show Properties( box );
Show( box );
(box << get windows)[1] << html save( "C:\...\name.htm" );
Close( box );
我已經介紹了您的建議,但是它沒有運行。 錯誤在哪裡?
提前致謝
馬庫斯
回复:JSL:將儀表板另存為交互式html我發現了錯誤:
我的命令行說:<< html save()
正確的應該是:<<保存html()
有了它,它起作用了。
因此,交互式html版本仍然存在問題。
馬庫斯