src/web/js/mgtArchiveOptions.js
/**
 * This method is called when the value of the select has changed. It will make sure that the proper 
 * group box is shown.
 * 
 * @param eventObject The event object.
 * 
 * @return Nothing.
 */
This method is called when the value of the select has changed. It will make sure that the proper
group box is shown.

@param eventObject The event object.

@return Nothing.
This method is called when the value of the select has changed . It will make sure that the proper group box is shown . @param eventObject The event object . @return Nothing .
function handleArchivingOptionChange(eventObject)
{
	var sValue = txtArchivingOption.getValue();
	if (sValue == "com.cordys.coe.ac.emailio.archive.DatabaseArchiver")
	{
		gbDatabaseArchiver.show();
		gbFileArchiving.hide();
		gbCustomArchiver.hide();
		if (!mdlDatabase.getData() || mdlDatabase.getData().firstChild == null || mdlDatabase.getData().selectSingleNode("//component") == null)
		{
			mdlDatabase.putData(xmlBaseComponent.documentElement.cloneNode(true));
			mdlDatabase.refreshAllViews(true);
		}
	}
	else if (sValue == "com.cordys.coe.ac.emailio.archive.FileArchiver")
	{
		gbDatabaseArchiver.hide();
		gbFileArchiving.show();
		gbCustomArchiver.hide();
	}
	else
	{
		gbDatabaseArchiver.hide();
		gbFileArchiving.hide();
		gbCustomArchiver.show();
	}
}
function handleArchivingOptionChange ( eventObject ) { var sValue = txtArchivingOption . getValue ( ) ; if ( sValue == "com.cordys.coe.ac.emailio.archive.DatabaseArchiver" ) { gbDatabaseArchiver . show ( ) ; gbFileArchiving . hide ( ) ; gbCustomArchiver . hide ( ) ; if ( ! mdlDatabase . getData ( ) || mdlDatabase . getData ( ) . firstChild == null || mdlDatabase . getData ( ) . selectSingleNode ( "//component" ) == null ) { mdlDatabase . putData ( xmlBaseComponent . documentElement . cloneNode ( true ) ) ; mdlDatabase . refreshAllViews ( true ) ; } } else if ( sValue == "com.cordys.coe.ac.emailio.archive.FileArchiver" ) { gbDatabaseArchiver . hide ( ) ; gbFileArchiving . show ( ) ; gbCustomArchiver . hide ( ) ; } else { gbDatabaseArchiver . hide ( ) ; gbFileArchiving . hide ( ) ; gbCustomArchiver . show ( ) ; } }
This method is called when the value of the select has changed.
This method is called when the value of the select has changed .