Tengo algunas dificultades para escribir un informe web dentro de un proyecto. El siguiente código funciona bien si se ejecuta fuera de un proyecto:
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 ) );
Sin embargo, si ejecuto el mismo código dentro de un proyecto, no funciona. El Informe Agregar () se queja:
argument is wrong type in access or evaluation of 'myplot' , myplot/*###*/
Cualquier ayuda es apreciada!
Me responderé aquí: escuché del soporte de JMP que este es un problema conocido en JMP 14, y aparentemente está solucionado en JMP 15.