Everyone who has ever made reports or pivot tables with relational databases has most probably faced the problem with finding a suitable component that not only performs all required functions but also executes them fast. Flexmonster solved this problem and created Flexmonster Data Compressor – a special server-side compression tool that helps you to increase data loading speed from server to customer’s browser.
Advantages of Flexmonster Compressor:
Embedding Flexmonster Pivot is a simple copy-paste procedure that takes just minutes!
client/
folder into the web project root to your server.<div>
container for the component:
<div id="pivotContainer">The component will appear here</div>
flexmonster.js
into your HTML page. Please note, that your page should be in the same folder as flexmonster/
:
<div id="pivotContainer">The component will appear here</div> <script type="text/javascript" src="flexmonster/flexmonster.js"></script>
<div id="pivotContainer">The component will appear here</div> <script type="text/javascript" src="flexmonster/flexmonster.js"></script> <script> var pivot = new Flexmonster({ container: "pivotContainer", toolbar: true, licenseKey: "Z7CJ-XF9J50-5J4J6X-2H136N-2L036W-1A0O01-6S5S6R-0W0T20-3C" }); </script>
Run your web page and see the empty table. The next step is to see your own data on the grid.
The package has compressor tools and samples for three server-side technologies:
server/.net/
folder contains ASP.NET Web API 2 sample project server/java/
folder contains sample for Java compression toolserver/php/
folder contains PHP library and samples for static files and MySQL databasePlease visit our documentation for step-by-step tutorials:
By default, browser prevents JavaScript from making requests across domain boundaries. CORS allows web applications to make cross-domain requests. Here are some useful links explain how to setup CORS on your server:
Now it’s time to configure Flexmonster Pivot Component on the web page. Let’s create a minimal report for this (replace filename
and other parameters with your specific values):
var pivot = new Flexmonster({ container: "pivotContainer", toolbar: true, report: { dataSource: { dataSourceType: "ocsv", /* URL to the Data Compressor .NET */ filename: "http://localhost:55772/api/flexmonster/get", /* OR URL to the Data Compressor Java */ /* filename: "http://localhost:8400/FlexmonsterCompressor/get", */ /* OR URL to the Data Compressor PHP */ /* filename: "http://localhost/demo-compress-mysql.php", */ } }, licenseKey: "Z7CJ-XF9J50-5J4J6X-2H136N-2L036W-1A0O01-6S5S6R-0W0T20-3C" );
Launch the web page from browser — here you go! A pivot table is embedded into your project.
See how Data Compressor is used in client/index.html and connect to your own database.
Check pricing | Give a feedback | Documentation | Technical support |