This commit is contained in:
2021-10-13 20:18:50 +00:00
parent 80b4c0fce6
commit 73eb38409c
2 changed files with 4 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ When a report is rendered the following steps take place behind the scenes:
* The resulting HTML document is rendered and converted to a .PDF format document, saved to a temporary location at the server and a download URL is sent back to the user's browser to download and open the .PDF document.
## Report designer user interface tabs
## Report designer tabs
### Properties
@@ -96,7 +96,7 @@ async function ayPrepareData(ayData) {
}
```
`ayData` parameter is an object containing three keys with data required to render the report and it's format is detailed below in the [Report Data Objects](#report-data-objects) section.
`ayData` parameter is an object containing three keys with data required to render the report and it's format is detailed below in the [Report Data Objects](#report-data-structure) section.
Note that the SAMPLE DATA section of the user interface in the report designer shows the raw data *before* it is passed to this function, not how it would look *after* this function is run. If you need to see how the data is shaped after a ayPrepareData you can make use of the `ayJSON` helper documented below to view the raw data on the rendered report itself.
@@ -113,7 +113,7 @@ This is displayed in the report designer user interface when the report designer
If you do not see this section it means the report designer was opened directly without passing through a business object first so there is no current data to display but you can still edit the report as normal. This can happen if you open a report from a History form or use the browser back button to go back to a report that was previously edited or open a report URL directly.
## Report data objects
## Report data structure
When a report template is processed, business object data is provided to the template along with other data. Some of this data is used internally by the provided helpers and you have full access to these data values in your templates, Handlebar helpers and PrepareData scripts.

View File

@@ -1,4 +1,4 @@
cd c:\data\code\raven\docs\8.0\ayanova
mkdocs build
mkdocs build -s -v
cd ..\..\..
pause