Book Image

Building Applications with Scala

By : Diego Pacheco
Book Image

Building Applications with Scala

By: Diego Pacheco

Overview of this book

<p>Scala is known for incorporating both object-oriented and functional programming into a concise and extremely powerful package. However, creating an app in Scala can get a little tricky because of the complexity the language has. This book will help you dive straight into app development by creating a real, reactive, and functional application. We will provide you with practical examples and instructions using a hands-on approach that will give you a firm grounding in reactive functional principles.</p> <p>The book will take you through all the fundamentals of app development within Scala as you build an application piece by piece. We’ve made sure to incorporate everything you need from setting up to building reports and scaling architecture. This book also covers the most useful tools available in the Scala ecosystem, such as Slick, Play, and Akka, and a whole lot more. It will help you unlock the secrets of building your own up-to-date Scala application while maximizing performance and scalability.</p>
Table of Contents (17 chapters)
Building Applications with Scala
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Preface

Creating a product report


To create a product report, click on File | New | Jasper Report. Then select the Invoice template.

Now you can click on Next > and we will set up the name of the report. The file name will be Products.jrxml. Click on Next >. Then, we will need to select the Data Source:  MySQL.

Now, you will need to run the Select name, details, price from Product; query.

After setting the SQL query, you can click on Next >.

Next, you will need to pick the fields that will be used in the report. Select all the fields from the left list and move them to the right list. Then click on Next >. We don't need group ordering for this report, so just skip the group and click on Next > again.

Congratulations! We finished the setup. We can take a look (have a report preview) of the report using Jaspersoft Studio. Just click on the new report called Products.jxml. We will remove all the fields that we don't need, as well as the logo. Then the report will look like this:

We...