Sto riscontrando qualche difficoltà nello scrivere un report web all'interno di un progetto.Il codice seguente funziona bene se eseguito al di fuori di un progetto:
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 ) );
Se eseguo lo stesso codice all'interno di un progetto, tuttavia, non funziona.The Add Report() si lamenta:
argument is wrong type in access or evaluation of 'myplot' , myplot/*###*/
Qualsiasi aiuto è apprezzato!
Risponderò a me stesso qui: ho sentito dal supporto di JMP che questo è un problema noto in JMP 14 e apparentemente è stato risolto in JMP 15.