cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
Choose Language Hide Translation Bar
View Original Published Thread

publish to file button

Françoise
Level V

hello,

 

is it possible to create a "publish to file" button in a report?when the user clicks on this button, an html report is created automatically.

 

cordially

This post originally written in French and has been translated for your convenience. When you reply, it will also be translated back to French .

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User


Re: bouton publier dans le fichier

Here is an example of one way to do what you want

Names Default To Here( 1 );
Bivariate( Y( :height ), X( :weight ), Fit Line( {Line Color( {212, 73, 88} )} ) );

theReport = Current Report();
theReport[Outline Box( 1 )] << prepend(
	bb = Button Box( "Publish to File",
		bb << visibility( "collapse" );
		theReport << save interactive HTML( "$TEMP/jmp_example.html" );
		bb << visibility( "visible" );
	)
);

txnelson_1-1673923846373.png

 

txnelson_0-1673923731616.png

 

Jim

View solution in original post

2 REPLIES 2
txnelson
Super User


Re: bouton publier dans le fichier

Here is an example of one way to do what you want

Names Default To Here( 1 );
Bivariate( Y( :height ), X( :weight ), Fit Line( {Line Color( {212, 73, 88} )} ) );

theReport = Current Report();
theReport[Outline Box( 1 )] << prepend(
	bb = Button Box( "Publish to File",
		bb << visibility( "collapse" );
		theReport << save interactive HTML( "$TEMP/jmp_example.html" );
		bb << visibility( "visible" );
	)
);

txnelson_1-1673923846373.png

 

txnelson_0-1673923731616.png

 

Jim
Françoise
Level V

Re: publish to file button

Hello Jim,

 

Thanks for your solution which I tested with your example.

 

I incorporated it into a steering table script, but I have another problem: see attached images. I don't know how to solve this problem.

the error message and the excerpt from the script:

cordiallyundefinedundefined

This post originally written in French and has been translated for your convenience. When you reply, it will also be translated back to French .