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

Article ID: 2493388 - View products that this article applies to.
Expand all | Collapse all

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.

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.

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.

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;

Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Properties

Article ID: 2493388 - Last Review: January 10, 2011 - Revision: 4.0
APPLIES TO
  • AVIcode, Inc.
Keywords: 
KB2493388

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com