src/web/js/mgtArchiveOptions.js
/**
 * This method builds up the actual archiving request and will kick off the archiving process.
 * Updates from the archiving process will be sent using the event service. 
 * 
 * @param eventObject The onClick event.
 * 
 * @return Nothing.
 */
This method builds up the actual archiving request and will kick off the archiving process.
Updates from the archiving process will be sent using the event service.

@param eventObject The onClick event.

@return Nothing.
This method builds up the actual archiving request and will kick off the archiving process . Updates from the archiving process will be sent using the event service . @param eventObject The onClick event . @return Nothing .
function doActualArchiving(eventObject)
{
	if (DEBUG_USERS.indexOf(system.getUser().name) > -1)
	{
		debugger;
	}
	var dRequest = createXMLDocument(xmlArchiveRequest.documentElement.xml, NAMESPACE_PREFIXES);
	var nMethod = dRequest.documentElement.selectSingleNode("//ns:ArchiveContainers");
	createArchiverConfiguration(nMethod);
	if (txtEmailBoxID.getValue() != "")
	{
		nMethod.selectSingleNode("ns:search/ns:EmailBoxID").text = txtEmailBoxID.getValue(); 
	}
	if (txtFromcreatedate.getValue() != "")
	{
		nMethod.selectSingleNode("ns:search/ns:FromCreateDate").text = txtFromcreatedate.getValue(); 
	}
	if (txtTocreatedate.getValue() != "")
	{
		nMethod.selectSingleNode("ns:search/ns:ToCreateDate").text = txtTocreatedate.getValue(); 
	}
	if (txtFromcompletedate.getValue() != "")
	{
		nMethod.selectSingleNode("ns:search/ns:FromCompleteDate").text = txtFromcompletedate.getValue(); 
	}
	if (txtTocompletedate.getValue() != "")
	{
		nMethod.selectSingleNode("ns:search/ns:ToCompleteDate").text = txtTocompletedate.getValue(); 
	}
	if (txtFromstatuschangedate.getValue() != "")
	{
		nMethod.selectSingleNode("ns:search/ns:FromStatusChangeDate").text = txtFromstatuschangedate.getValue(); 
	}
	if (txtTostatuschangedate.getValue() != "")
	{
		nMethod.selectSingleNode("ns:search/ns:ToStatusChangeDate").text = txtTostatuschangedate.getValue(); 
	}
	var sStatus = "";
	if (txtCompleted.getValue() == "true")
	{
		sStatus = "COMPLETED"; 
	}
	if (txtActionError.getValue() == "true")
	{
		sStatus += (sStatus != "" ? ", " : "") + "ACTION_ERROR"; 
	}
	if (txtMessageError.getValue() == "true")
	{
		sStatus += (sStatus != "" ? ", " : "") + "MESSAGE_ERROR"; 
	}
	nMethod.selectSingleNode("ns:search/ns:Status").text = sStatus; 
	executeRequest(dRequest.documentElement);
}
function doActualArchiving ( eventObject ) { if ( DEBUG_USERS . indexOf ( system . getUser ( ) . name ) > - 1 ) { debugger ; } var dRequest = createXMLDocument ( xmlArchiveRequest . documentElement . xml , NAMESPACE_PREFIXES ) ; var nMethod = dRequest . documentElement . selectSingleNode ( "//ns:ArchiveContainers" ) ; createArchiverConfiguration ( nMethod ) ; if ( txtEmailBoxID . getValue ( ) != "" ) { nMethod . selectSingleNode ( "ns:search/ns:EmailBoxID" ) . text = txtEmailBoxID . getValue ( ) ; } if ( txtFromcreatedate . getValue ( ) != "" ) { nMethod . selectSingleNode ( "ns:search/ns:FromCreateDate" ) . text = txtFromcreatedate . getValue ( ) ; } if ( txtTocreatedate . getValue ( ) != "" ) { nMethod . selectSingleNode ( "ns:search/ns:ToCreateDate" ) . text = txtTocreatedate . getValue ( ) ; } if ( txtFromcompletedate . getValue ( ) != "" ) { nMethod . selectSingleNode ( "ns:search/ns:FromCompleteDate" ) . text = txtFromcompletedate . getValue ( ) ; } if ( txtTocompletedate . getValue ( ) != "" ) { nMethod . selectSingleNode ( "ns:search/ns:ToCompleteDate" ) . text = txtTocompletedate . getValue ( ) ; } if ( txtFromstatuschangedate . getValue ( ) != "" ) { nMethod . selectSingleNode ( "ns:search/ns:FromStatusChangeDate" ) . text = txtFromstatuschangedate . getValue ( ) ; } if ( txtTostatuschangedate . getValue ( ) != "" ) { nMethod . selectSingleNode ( "ns:search/ns:ToStatusChangeDate" ) . text = txtTostatuschangedate . getValue ( ) ; } var sStatus = "" ; if ( txtCompleted . getValue ( ) == "true" ) { sStatus = "COMPLETED" ; } if ( txtActionError . getValue ( ) == "true" ) { sStatus += ( sStatus != "" ? ", " : "" ) + "ACTION_ERROR" ; } if ( txtMessageError . getValue ( ) == "true" ) { sStatus += ( sStatus != "" ? ", " : "" ) + "MESSAGE_ERROR" ; } nMethod . selectSingleNode ( "ns:search/ns:Status" ) . text = sStatus ; executeRequest ( dRequest . documentElement ) ; }
This method builds up the actual archiving request and will kick off the archiving process.
This method builds up the actual archiving request and will kick off the archiving process .
//Create the SOAP request 
 //Create the part with the archiver configuration
 //Fill the SearchContainer variables.
 //Build up the status string
 //Now the request can be sent to Cordys.
 //Passing on the document element to make sure the document is parsed into
 //XSL selection language.
 //TODO: show panel that will display the status information
