@@ -24,8 +24,8 @@ and save layout customizations to the data source.
24241 . Run the sample app and click ** New Report** .
25251 . Click ** Design Report** to display the [ Report Designer] [ dx-report-designer ] dialog.
2626 1 . Create a report layout using tools available within the UI.
27- 2 . Click the hamburger button, select the ** Save** option, and close the dialog.
28- 2 . Close and restart the app.
27+ 1 . Click the hamburger button, select the ** Save** option, and close the dialog.
28+ 1 . Close and restart the app.
2929 Click ** Design Report** or ** Preview Report** to load the saved report in the designer or [ Report Viewer] [ dx-report-viewer ] .
3030
3131## Implementation Details
@@ -42,26 +42,25 @@ This example project uses a SQLite sample database ([nwind.db]) as a report data
4242
4343### Step 1: Create a Dataset to Store Report Layout Data
4444
45-
46451 . Add a [ TdxMemData] component to the data module (` mdLayouts ` in the example).
47- 2 . Add a [ TDataSource] component to the data module (` dsLayouts ` in the example).
46+ 1 . Add a [ TDataSource] component to the data module (` dsLayouts ` in the example).
4847 Assign the previously created dataset component to ` TDataSource.DataSet ` :
4948
5049 > <img src =" ./images/create-bind-data-source.png " style =" width : 50% " alt =" " />
5150
52- 3 . Open the context menu for the dataset component and select ** Field Editor…** :
51+ 1 . Open the context menu for the dataset component and select ** Field Editor…** :
5352
5453 > <img src =" ./images/open-context-menu.png " style =" width : 50% " alt =" " />
5554
56- 4 . Click ** Add…** to create a BLOB field for layout data:
55+ 1 . Click ** Add…** to create a BLOB field for layout data:
5756
5857 > <img src =" ./images/create-layout-field.png " style =" width : 50% " alt =" " />
5958
60- 5 . Click ** Add…** to create a string field for layout names:
59+ 1 . Click ** Add…** to create a string field for layout names:
6160
6261 > <img src =" ./images/create-name-field.png " style =" width : 50% " alt =" " />
6362
64- 6 . (* Optional* ) Preload persistent data to the dataset to make layouts available in the application upon first launch.
63+ 1 . (* Optional* ) Preload persistent data to the dataset to make layouts available in the application upon first launch.
6564
6665 This example includes a sample report layout that displays data from the Northwind sample database.
6766 You can preload it from [ example.dat] .
9594To load a different report, assign a new report name and layout.
9695The assigned report replaces the current layout definition.
9796
98- <!--
99- 1. Assign report name and layout when application starts.
100- 2. Assign report name and layout when user selects a different grid row.
101- 3. (Optional) Change report name when user edits it in the grid view.
102- -->
103-
10497
10598### Step 3: Display Report Designer and Viewer
10699
0 commit comments