Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Unable to select dates with a year greater than 2010 in AVIcode Intercept Studio SE-Viewer


Symptoms

When using the AVIcode Intercept Studio SE-Viewer application to review data by date/time ranges, the date picker dialog does not allow any dates with a year beyond 2010 to be either selected using the Calendar control or by manually entering the year.

↑ Back to the top


Cause

The Calendar control has a hard-coded value to only show up to the year 2010 and the date picker dialog as a whole is configured to only allow year values up to 2010.

↑ Back to the top


Resolution

Resolution 1:

Upgrade to AVIcode Intercept Studio 5.7 or later.

Resolution 2:

To resolve this issue in versions prior to 5.7, perform the following steps:

  1. On the AVIcode Intercept Studio SE-Viewer server, navigate to the <SE-Viewer Install>\Web\Scripts folder.
  2. Open the controls.js file in Notepad.
  3. Search for MaxVal = 2010 and replace that text with MaxVal = 2020.
  4. Save the modified controls.js file and close Notepad.
  5. Navigate to the <SE-Viewer Install>\Web\Behaviors folder.
  6. Open the Calendar.htc file in Notepad.
  7. Search for maxYear = 2010 and replace that text with maxYear = 2020.
  8. Save the modified Calendar.htc file and close Notepad.
  9. Refresh the view in AVIcode Intercept Studio SE-Viewer.

↑ Back to the top


More Information

Installation Folders

The default installation folder for AVIcode Intercept Studio SE-Viewer is as follows:

32-bit Windows Server Editions:
C:\Program Files\Avicode\Intercept\SEViewer

64-bit Windows Server Editions:
C:\Program Files (x86)\Avicode\Intercept\SEViewer

Controls.js File

The section in the controls.js file that needs to be updated is a function called GetMaxVal and will look like this:

function GetMaxVal(Control)
{
 
  if(Control.valtype=='d') {MaxVal = 32;}//TODO - MaxVal should be different for different months/years
  if(Control.valtype=='m') {MaxVal = 13;}
  if(Control.valtype=='y') {MaxVal = 2010;}
  if(Control.valtype=='h') {MaxVal = 24;}
  if(Control.valtype=='i') {MaxVal = 60;}
  if(Control.valtype=='s') {MaxVal = 60;}
  return MaxVal;
}

Calendar.htc File

The section in the Calendar.htc file that needs to be updated is a variable called maxYear and will look like this:

var minYear = 2001;
var maxYear = 2020;

↑ Back to the top


Keywords: vkball, kb

↑ Back to the top

Article Info
Article ID : 2493388
Revision : 1
Created on : 1/8/2017
Published on : 1/10/2011
Exists online : False
Views : 103