Concat Items
Concat Items using Run Script
Summary: Creates and publishes web reports with distribution data, handling exceptions and allowing for download.
Code:
dt = Open("data_table.jmp");
dis = dt << Run Script( "Distribution" );
Try(
webrpt = New Web Report( Add Report( dis ), Publish Data( 1 ), ),
If( Is List( exception_msg ),
exception_msg = Concat Items( exception_msg, "!n" )
);
);
Try(
webrpt = New Web Report( Add Report( dis ), Allow Download( 1 ), ),
If( Is List( exception_msg ),
exception_msg = Concat Items( exception_msg, "!n" )
);
);
Code Explanation:
- Open data table.
- Run Distribution script on data.
- Attempt to create web report with distribution.
- Publish data in web report.
- Handle exceptions if any.
- Attempt to create another web report.
- Allow download in web report.
- Handle exceptions if any.