Show/hide tables based on passed in date parameter

VirgilVirgil AdministratorEM admin
edited May 8, 2017 in DevShare Downloads
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;
}

Virgil Dodson
OpenText Analytics Developer Community
https://forums.opentext.com/forums/categories/analytics

Sign In or Register to comment.