Skip to content

Commit 4169c0e

Browse files
authored
Merge pull request #1 from Yash58vanth/master
documentation(EJ2-67661): UG document to save and load report using database.
2 parents d175e7f + 1403899 commit 4169c0e

27 files changed

Lines changed: 373848 additions & 2 deletions

Javascript/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# How to save and load reports from a SQL Server Database to a Pivot Table
2+
3+
A quick start project that shows how to save and load reports from a SQL Server database and load them into the Syncfusion Pivot Table at run time. This repository includes a ASP.NET Core Web App Controller ([MyWebService](../MyWebService/)) for saving and loading reports from a SQL server database, as well as a quick start samples in the JavaScript platform that displays the loaded report in a Syncfusion Pivot Table.
4+
5+
## Project prerequisites
6+
7+
Before beginning work on the server and client projects, ensure the following software to be installed in the machine.
8+
9+
* [git](https://git-scm.com/downloads)
10+
* [Node.js](https://nodejs.org/en/)
11+
* [Visual Studio Code](https://code.visualstudio.com/)
12+
* [Visual Studio 2022](https://visualstudio.microsoft.com/downloads/ ) and [.NET Core SDK 6.0](https://dotnet.microsoft.com/en-us/download/dotnet/6.0) or later installed on your machine
13+
14+
## How to run this application?
15+
16+
* To run this application, clone the [Save-and-load-report-from-SQL-database-to-pivot-table](https://github.com/SyncfusionExamples/Save-and-load-report-from-SQL-database-to-pivot-table) repository and then open **MyWebService** in Visual Studio 2022. Simply build and run your project in IIS Express, and it will host and display the URL 'https://localhost:44313'.
17+
18+
* Now open the JavaScript sample in Visual Studio Code. Initialize the Pivot Table, create a pivot report based on the given data source, map the hosted url to perform save and load reports with the SQL database, and finally, open the **index.html** file in your browser to run your project.

Javascript/pivot-table/index.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html xmlns="http://www.w3.org/1999/xhtml">
3+
<head>
4+
<title>Essential JS 2</title>
5+
<!-- Essential JS 2 pivot table's dependent material theme -->
6+
7+
<!-- Essential JS 2 pivot table's material theme -->
8+
<link href="styles/material.css" rel="stylesheet" type="text/css"/>
9+
10+
<!-- Essential JS 2 pivot table's dependent scripts -->
11+
12+
<!-- Essential JS 2 pivot table's global script -->
13+
<script src="scripts/ej2.js" type="text/javascript"></script>
14+
</head>
15+
<body>
16+
<div id="PivotView"></div>
17+
<script src="index.js" type="text/javascript"></script>
18+
</body>
19+
</html>

0 commit comments

Comments
 (0)