The Windward Studio

Windward Blog Home

Windward Version 15: The 2-Minute Intro to Template Integration

Posted on 08/25/2016

Please Share This


NOTE: This is the second post in our series on 2-minute intros to Windward Version 15. Missed the beginning? Start here.

Once you’ve created and edited your template and have everything running smoothly in AutoTag, it’s time to ensure that your hard work transitions into your integration of the Windward Engine.

Did you know that you can use the Windward tool Generate Code to take care of this?

What is Generate Code?

Generate Code is a tool introduced in Version 13.1 and updated in Version 15 that allows you to open an existing template and, with one button click, automatically create a window with the code needed to run your current template with all data sources and variables in your .NET, Java, or RESTful project.

The latest version has new tab navigation at the top and additional menu options, color schemes and font sizes.

Generate Code ribbon

How Generate Code Works

In case you haven’t used this tool or want a quick refresher on how it works:

Windward templates contain attributes that the Windward Engine calls with unique code.  These include each of your data sources and any variables you’ve created:

  • Data sources. These data sources have unique connection strings for SQL and file path references for XML and other file-based data sources.
  • Variable Mapping. You must enter each of the variables created in your template into a hash-map in order to use them in the Windward Engine.

In order to call these attributes and run a report, the Windward Engine has 8 major steps that need to be defined in your code.  The Generate Code function takes care of these steps for you.

Generate Code is a One-Time Process

Keep in mind that you do not need to run Generate Code for every template. You run this once to get started copying the sample code to your application. Then you will add to that code to pass in the template you want to run and to write the generated report to the stream you want the output in.

Over time you may find you need to add additional variables that are passed in when you run the report, or possibly even another data source. Do not re-run Generate Code in this case; instead, just add these items to your code.

Where can I learn more?

Head on over to our documentation wiki article Generate Code. And as always, feel free to make a comment or ask a question in the comments below.

Please Share This

Author: Adam Jackson

Establishing a bridge between technology, business and people is no easy task, but with a heavy technical education surrounded by sales, marketing, technical support and product management experience, Adam does just that. Outside of work he enjoys all of Colorado’s outdoor activities including running, rock climbing, hiking, and snowboarding.

Other posts by