External sort

You might have run into this issue when designing documents with RPE: you want to sort the data but the property you need is not available in the sort dialog.

If your data is organized in tables and your output type is Microsoft Word than you can use Microsoft Word’s sorting capabilities to do the sorting. Continue reading “External sort”



[Update 2011.11.08 – the fix list is now updated on the IBM site]

The latest and greatest version of RPE,, is now available. RPE addresses a large percent of the known RPE defects. Some information on this release:

RPE palette is not working?

Actually it does but you need to be in the right perspective, the Document Studio one.

Update 2012.03.09 – actually you might be in the right perspective and the palette would still not work. If you are in the right perspective and the palette still doesn’t work you need to reset the perspective ( from the Window\Reset perspective menu). See this for more details.

To help with the explanation let me add some background on Eclipse Perspectives. RPE Document Studio is an Eclipse application that contains two distinct components ( or features): the RPE Launcher and the RPE Document Studio.

Continue reading “RPE palette is not working?”

JavaScript in RPE

Simple templates can be created in RPE by doing drag&drop mainly. However for some of the more interesting templates you need to write some code: process the data that is being rendered, conditions for exclusion of elements or formatting etc.For all this you use JavaScript.

RPE exposes a standard JavaScript engine meaning you can one of the many JavaScript resources available on the WWW. For more details on the JavaScript engine supported by RPE check Mozilla Rhino: JavaScript for Java

Continue reading “JavaScript in RPE”

Reporting with RQM 301

RQM 3.0.1 Reportable API used for document generation with RPE is, excepting a few areas, backwards compatible meaning the templates you’ve created for 2.x should work with 3.0.1

For the areas where RQM 3.0.1 is not backwards compatible see Notable Changes in RQM Schema

Another interesting link is RQM API Fields This new API will allow you to build more elegant and efficient RPE templates for RQm document generation.

Using RPE 1.1.2 Type Cast

When using Type Cast-ing in Rational Publishing Engine a few rules must be followed:

  • use Type Cast when and where supported by the data source
  • use a correct query structure

Use Type Cast when and where supported

RPE will allow you to CAST any type to any other type without checking if there is a relationship between those types to make the CAST valid. Defining invalid casts won’t break the template or cause run time errors but those queries will not return any results.

Continue reading “Using RPE 1.1.2 Type Cast”

What is new in RPE 1.1.2 – Loops

UPDATE: the example template is available here [RPE DevWorks Community Library].

In many cases you need to repeat a certain block in your template. This can already be done if you iterate data but sometimes it can be useful to do it when you do not have data to iterate over. You can achieve this in RPE by duplicating that template section but that is not desirable for two reasons:

  • duplication is evil
  • duplication works only if you know the number of times you want the block to be repeated

Continue reading “What is new in RPE 1.1.2 – Loops”