프로젝트 내부에서 웹 보고서를 스크립팅하는 데 어려움이 있습니다. 다음 코드는 프로젝트 외부에서 실행하는 경우 제대로 작동합니다.
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Candy Bars.jmp" );
tps_html = New Web Report();
myplot = New Window( "my GB",
Graph Builder(
Show Control Panel( 0 ),
Variables( X( :Sugars g ), Y( :Sodium mg ) ),
Elements( Points( X, Y ) ),
Local Data Filter( Add Filter( columns( :Brand ) ) )
)
);
mydist = dt << Distribution( Nominal Distribution( Column( :Name ) ) );
tps_html << Add Report( myplot, Title( "my graph builder" ), Description( "Created by unicorns" ) );
tps_html << Add Report( mydist, Title( "Distro" ), Description( "Created by unicorns" ) );
reptdir = "C:\TEMP\tps_report";
tps_html << Save( reptdir, Publish Data( 0 ) );
그러나 프로젝트 내에서 동일한 코드를 실행하면 작동하지 않습니다. Add Report ()는 다음과 같이 불평합니다.
argument is wrong type in access or evaluation of 'myplot' , myplot/*###*/
도움을 주셔서 감사합니다!
JMP 지원팀으로부터 JMP 14에서 알려진 문제이며 JMP 15에서 수정되었다고 들었습니다.