src/web/js/mgtSearchEmailMsgs.js
/**
 * This method is called when the form initializes. It will make sure that by default all datefields are empty.
 * 
 * @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.

@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 . @param eventObject The onInitDone event . @return Nothing .
function handleInitDone(eventObject)
{
	txtFromsenddate.setValue('');
	txtTosenddate.setValue('');
	txtFromreceivedate.setValue('');
	txtToreceivedate.setValue('');
	txtRawcontent.disable();
	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 != "")
		        {
					txtContextContainerID.setValue(nWindowData.selectSingleNode(".//ContextContainerID").text);
					searchEmailMessages();
		       }
		    }
		}
	}
}
function handleInitDone ( eventObject ) { txtFromsenddate . setValue ( '' ) ; txtTosenddate . setValue ( '' ) ; txtFromreceivedate . setValue ( '' ) ; txtToreceivedate . setValue ( '' ) ; txtRawcontent . disable ( ) ; 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 != "" ) { txtContextContainerID . setValue ( nWindowData . selectSingleNode ( ".//ContextContainerID" ) . text ) ; searchEmailMessages ( ) ; } } } } }
This method is called when the form initializes.
This method is called when the form initializes .
//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.
 //Call this method to fire the model and update the controls with the data.
