Jump to content

BIRT Developer Center Download


Submitter

File Information

  • Submitted: May 08 2017 10:07 AM
  • Last Updated: May 08 2017 10:07 AM
  • File Size: 28.2KB
  • Views: 215
  • Downloads: 3
  • Approved by: Virgil
  • Approved on: 08 May 2017 - 10:08 AM
  • Summary: Show/hide tables based on passed in date parameter
  • Content Type: Designs & Code
  • BIRT Version: 4.5

Download Swap Table Based on Date Parameter

- - - - -
birt date visibility table parameter



Screenshots
This example uses a passed in parameter to determine which table to show. Each table uses the visibility property and code similar to below.
var paramDate = new Date(Date.parse(params["NewParameter"].value));
var flipDate = new Date(Date.parse(params["flipParam"].value));

var paramDateComp = paramDate.getTime();
var flipDateComp = flipDate.getTime();

if (paramDateComp > flipDateComp) {
  true;
} else {
  false;
}







0 user(s) are online (in the past 1 minutes)

0 members, 0 guests, 0 anonymous users