src/web/js/mgtArchiveOptions.js
/**
 * This method is called when the form initializes. It will make sure that by default all datefields are empty.
 * Only the LastStatusChangeDate will be filled with a date 1 month before.
 * 
 * @param eventObject The onInitDone event.
 * 
 * @return Nothing.
 */
This method is called when the form initializes. It will make sure that by default all datefields are empty.
Only the LastStatusChangeDate will be filled with a date 1 month before.

@param eventObject The onInitDone event.

@return Nothing.
This method is called when the form initializes . It will make sure that by default all datefields are empty . Only the LastStatusChangeDate will be filled with a date 1 month before . @param eventObject The onInitDone event . @return Nothing .
function handleInitDone(eventObject)
{
    if (DEBUG_USERS.indexOf(system.getUser().name) > -1)
	{
    	debugger;
	}
	txtFromstatuschangedate.setValue('');
	txtFromcreatedate.setValue('');
	txtTocreatedate.setValue('');
	txtFromcompletedate.setValue('');
	txtTocompletedate.setValue('');
	txtCompleted.setValue("true");
	var dDate = new Date();
	dDate.prevMonth();
	txtTostatuschangedate.setValue(dDate);
	txtZipMethod.setValue("-1");
	txtFBLocation.setValue("coe/emailioconnector/archives");
	handleArchivingOptionChange(null);
    libPassword = window.document.createElement("SPAN");
    libPassword.id = "libPassword";
    application.addLibrary("/cordys/wcp/admin/library/base64encoder.htm", libPassword);
	if (g_bAppStarted == false)
	{
		g_bAppStarted = true;
		if (window.application && window.application.event)
		{
			var nWindowData = window.application.event.applicationDefinition.selectSingleNode(".//data");
		    if (nWindowData != null)
		    {
		        if (nWindowData.text != "")
		        {
					txtEmailBoxID.setValue(nWindowData.selectSingleNode(".//EmailBoxID").text);
		       }
		    }
		}
	}
}
function handleInitDone ( eventObject ) { if ( DEBUG_USERS . indexOf ( system . getUser ( ) . name ) > - 1 ) { debugger ; } txtFromstatuschangedate . setValue ( '' ) ; txtFromcreatedate . setValue ( '' ) ; txtTocreatedate . setValue ( '' ) ; txtFromcompletedate . setValue ( '' ) ; txtTocompletedate . setValue ( '' ) ; txtCompleted . setValue ( "true" ) ; var dDate = new Date ( ) ; dDate . prevMonth ( ) ; txtTostatuschangedate . setValue ( dDate ) ; txtZipMethod . setValue ( "-1" ) ; txtFBLocation . setValue ( "coe/emailioconnector/archives" ) ; handleArchivingOptionChange ( null ) ; libPassword = window . document . createElement ( "SPAN" ) ; libPassword . id = "libPassword" ; application . addLibrary ( "/cordys/wcp/admin/library/base64encoder.htm" , libPassword ) ; if ( g_bAppStarted == false ) { g_bAppStarted = true ; if ( window . application && window . application . event ) { var nWindowData = window . application . event . applicationDefinition . selectSingleNode ( ".//data" ) ; if ( nWindowData != null ) { if ( nWindowData . text != "" ) { txtEmailBoxID . setValue ( nWindowData . selectSingleNode ( ".//EmailBoxID" ) . text ) ; } } } } }
This method is called when the form initializes.
This method is called when the form initializes .
//Initialize the search fields
 //Make sure only 1 panel is shown.
 //Create the libPassword object
 //Attach the base64 library.
 //If data was passed on to this screen, do the auto-search
 // Set the values taken from window.application to the input controls in the XForm.
