You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.
Preconditions for new jmix project:
1. Add add-ons Pivot Table and Reports
2. Create JPA entity PersonPart with attributes: number: Integer, description: String -> add standard screens
3. Create JPA entity Person with attributes: name: String, age: integer, parts: association or composition One-to-many with PersonPart entity -> add standard screens
-> in fetch plan add parts -> complete creation
4. Gradle ->Task -> application -> bootRun
5. Open http://localhost:8080/ -> login (admin/admin)
6. Create one entity PersonPart and Person
Steps:
Reports -> Reports -> Create -> Using wizard -> Entity: Person, Template type: Table -> Report type -> Report for list of entities
Select name and age -> ok -> Next - > Save -> OK
In Reports select the created report -> Edit
Templates: Select a row in the table with the DEFAULT code -> Edit
Select: Output type: Pivot table, Band: Person, Mode: Sum -> ok - > Default aggregation: Sum
Properties options -> Create -> Row
Name "Test" -> Ok
Create -> select Aggregation
Age "5" -> Ok - > OK
Save -> Run -> Select Entity -> Run -> Excel
ER:
The report is exported.
AR:
The text was updated successfully, but these errors were encountered:
@reznikova21 You've probably created an invalid pivot table. The pivot table should contain both columns and rows properties. For instance I have a table that displays a count of persons with the given name and with the given age, e.g.
This table says that there are 2 Bobs of the age 5 and and one Bob of 88. This kind of pivot table (it has both rows and columns) is exported correctly.
Environment:
OS: Mac
Jmix version: 1.1.0-SNAPSHOT
Preconditions for https://github.com/jmix-projects/sample-sales-jmix:
Preconditions for new jmix project:
1. Add add-ons Pivot Table and Reports
2. Create JPA entity PersonPart with attributes: number: Integer, description: String -> add standard screens
3. Create JPA entity Person with attributes: name: String, age: integer, parts: association or composition One-to-many with PersonPart entity -> add standard screens
-> in fetch plan add parts -> complete creation
4. Gradle ->Task -> application -> bootRun
5. Open http://localhost:8080/ -> login (admin/admin)
6. Create one entity PersonPart and Person
Steps:
ER:
The report is exported.
AR:
The text was updated successfully, but these errors were encountered: