On April 27, 2024, our Sign-in and Create Account options will be unavailable from 9am-12pm ET. During this maintenance window, developer account access and free trial registration will be unavailable.

Show/hide tables based on passed in date parameter

Virgil
Virgil AdministratorEM admin
edited 2017 08 in DevShare Downloads #1
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;
}