BookmarkSubscribe
Choose Language Hide Translation Bar
klk
klk
Community Trekker

Web Report inside project

I am having some difficulty scripting a web report inside a project.  The following code works just fine if run outside a project:

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 ) );

If I run the same code inside a project, however, it doesn't work.  The Add Report() complains:

argument is wrong type in access or evaluation of 'myplot' , myplot/*###*/

Any help is appreciated!

0 Kudos
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
klk
klk
Community Trekker

Re: Web Report inside project

I'll reply to myself here - I heard from JMP support that this is a known problem in JMP 14, and it is apparently fixed in JMP 15. 

1 REPLY 1
Highlighted
klk
klk
Community Trekker

Re: Web Report inside project

I'll reply to myself here - I heard from JMP support that this is a known problem in JMP 14, and it is apparently fixed in JMP 15.