Hub
Pricing About
WorkflowWorkflow

05_Using_KNIME_Colors_in_BIRT_Report

BIRTReporting
knime profile image
Versionv1.1Latest, created on 
Feb 16, 2025 10:36 PM
Drag & drop
Like
Download workflow
Workflow preview
How to use colors in reporting

Demonstrates how to use the colors defined in a KNIME Color Manager node in BIRT reporting.

1) In KNIME: Define colors in Color Manager

2) In KNIME: Extract colors from color model and send color table to BIRT/Reporting

3) In BIRT: Define "onFetch" script on color data set from step (2). This will put the a color key-value pair [class->colorID] into a PersistentGlobalVariable. Note that BIRT calls JavaScript during report generation.

4) In BIRT: Use a dummy/hidden text element as first report element to access the color table (will subsequently run the "onFetch" script on the data set from step 3).  

5) In BIRT: In the script to a graph element define appropriate functions to use the variables defined in step 3.

Note, this is rather complicated but the only solution that seems to be doable. KNIME and the BIRT are two independent components, whereby KNIME really only serves as a data provider to BIRT.

In order to see the report, execute the entire workflow and then click "Open the report" button in the toolbar.
Loading deploymentsLoading ad hoc jobs

Used extensions & nodes

Created with KNIME Analytics Platform version 5.4.2
  • Go to item
    KNIME Base nodesTrusted extension

    KNIME AG, Zurich, Switzerland

    Versions 5.4.0, 5.4.1

    knime profile image
    knime
  • Go to item
    KNIME JavasnippetTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.4.0

    knime profile image
    knime
  • Go to item
    KNIME Reporting Runtime (BIRT)Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.4.0

    knime profile image
    knime

Legal

By using or downloading the workflow, you agree to our terms and conditions.

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits