OQL question for reporting

From a small application I need to generate a Wordt document. De domain model has 3 entities: Customer (name...) Order (ord#, #date....) Orderline (art#, quant...) I want to generate an Word document/overview with the following result: Customer Name1 (attributes) order 1 details (attributues) Orderline 1 (attributes) Orderline 2 (attributes) Customer Name2 (attributes) order 2 details (attributues) Orderline 1 (attributes) Orderline 2 (attributes) I am not sure how to generate the dataset to be used when generating the dataset. Are the examples online somewhere?
1 answers

Create a document template which receives a list of orders sorted by customer. From there you can add a template grid on the template and populate the grid.