Apex Integration II

In the last article, we dealt with creating the report data, now we'll move on to the creation of layouts for that data. If you remember we were using the Demo application that comes as a default with Apex. I have to admit, I am no Apex expert and I have made an assumption here that those of you reading this are familiar with the Apex product and how to create applications, pages, regions, objects, etc ... if you're not, then just a take a step back and go build some intefaces. Apex really is a very fast environment to build in and very easy to pick up.
 We were in the 'Shared Components' area of our application, now we go into the 'Report Layouts' area and create a new layout.

Apex6:

As you can see there are 3 choices:
Generic Columns (XSL-FO)
 This option is going to take the column headers, widths and other attributes from the Report Region that it is held in. The UI for the layout shows pure XSL-FO code which can be a little daunting. But the Apex folks have done a nice job of allowing you to either get stuck into the XSLFO or to just manipulate the various substitution variables. Such as:

The following are valid substitution strings:


  • #PAGE_HEADER#
  • #PAGE_HEADERFONT_COLOR#
  • #PAGE_HEADER_FONT_FAMILY#
  • #PAGE_HEADER_FONT_SIZE#
  • #PAGE_HEADER_FONT_WEIGHT#
  • #PAGE_FOOTER#
  • #PAGE_FOOTER_FONT_COLOR#
  • #PAGE_FOOTER_FONT_FAMILY#
  • #PAGE_FOOTER_FONT_SIZE#
  • #PAGE_FOOTER_FONT_WEIGHT#
  • #PAGE_WIDTH#
  • #PAGE_HEIGHT#
  • #HEADER_BG_COLOR#
  • #HEADER_FONT_COLOR#
  • #HEADER_FONT_FAMILY#
  • #HEADER_FONT_SIZE#
  • #HEADER_FONT_WEIGHT#
  • #BODY_BG_COLOR#
  • #BODY_FONT_COLOR#
  • #BODY_FONT_FAMILY#
  • #BODY_FONT_SIZE#
  • #BODY_FONT_WEIGHT#
  • #BORDER_WIDTH#

Apex7:


Takes a little finding but the 'Print Attributes' tab for the hosting Report Region is where you can specifiy the various attributes.

Apex8:
 
Named Columns (RTF)

Here you can name your layout and then upload the RTF template you want associated. This method requires that you use the 'Export Report as XML' link I mentioned in the last entry to get some sample XML down to your desktop. You can then use the MSWord plugin to help build the template. There is a link to get the download on the Apex 'Create Report Layout' page.

Apex9:

Named Columns (XSL-FO)

Similar to the RTF templates you can upload raw XSLFO templates. This method, of course can be used when you are using something like Apache FOP for formatting rather than BIP - but we're not going to go there are we :o)

It should be noted here that the templates and report definitions are managed wholly by Apex and are not stored on the BIP server at all. If you take a look at the architecture diagram on the previous article, you'll see the 'Converter Servlet' sitting in the BI Publisher server. This a new piece of functionality for the BIP server that will serve up the output document based on the XML data, layout template and requested format.

Once the templates are loaded you now need to be able to access the report from a page, there are a couple of options with some caveats ... we'll get to that next.


Update


Dimitri left a comment, thankfully with a link to his APEX/BIP integration article, check it out here:


http://dgielis.blogspot.com/


Well worth the read!

Comments:

Great posts Tim. I'm also trying to test the limits of the "next" generation reporting tool. I really like BIP so far. Thanks, Dimitri

Posted by Dimitri Gielis on June 08, 2007 at 10:27 AM MDT #

Only a year late, but never too late for a compliment I suppose. Great posts from both experts. I haven't used APEX before but I need to know how to integrate it with BIP. The two articles help me a lot. Thanks

Posted by Damien on August 04, 2008 at 09:29 PM MDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Follow bipublisher on Twitter Find Us on Facebook BI Publisher Youtube ChannelDiscussion Forum

Join our BI Publisher community to get the most and keep updated with the latest news, How-to, Solutions! Share your feedback and let us hear your voice @bipublisher on Twitter, on our official Facebook page, and Youtube!

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today