src/web/js/mgtSearchMailboxes.js
/**
 * This method is called when the context item 'Seach context containers' is clicked. It will
 * start up the mgtSearchContainers screen and pass on the current email box ID.
 * 
 * @return Nothing.
 */
This method is called when the context item 'Seach context containers' is clicked. It will
start up the mgtSearchContainers screen and pass on the current email box ID.

@return Nothing.
This method is called when the context item ' Seach context containers ' is clicked . It will start up the mgtSearchContainers screen and pass on the current email box ID . @return Nothing .
function handleContextSearchContainers()
{
	if (DEBUG_USERS.indexOf(system.getUser().name) > -1)
	{
		debugger;
	}
	var oActiveElement = g_cmContextContainerDetails.activeElement;
	if (oActiveElement != null)
	{
		var oBusinessObject = oActiveElement.businessObject;
		if (oBusinessObject != null)
		{
			var xmlApplication = xmlSearchContainers.documentElement.cloneNode(true);
			var sEmailBoxName = "";
			var nNode = oBusinessObject.selectSingleNode(".//Name");
			if (nNode != null)
			{
				sEmailBoxName = nNode.text;
				xmlApplication.selectSingleNode(".//EmailBoxID").text = sEmailBoxName;
			}
			xmlApplication.selectSingleNode(".//id").text = "sc_" + sEmailBoxName;
			var sDescription = "Search Context containers";
			if (sEmailBoxName != "")
			{
				sDescription += " for email box " + sEmailBoxName;
			}
			xmlApplication.selectSingleNode(".//description").text = sDescription;
			xmlApplication.selectSingleNode(".//caption").text = sDescription;
			application.select(xmlApplication);
		}
	}
}
function handleContextSearchContainers ( ) { if ( DEBUG_USERS . indexOf ( system . getUser ( ) . name ) > - 1 ) { debugger ; } var oActiveElement = g_cmContextContainerDetails . activeElement ; if ( oActiveElement != null ) { var oBusinessObject = oActiveElement . businessObject ; if ( oBusinessObject != null ) { var xmlApplication = xmlSearchContainers . documentElement . cloneNode ( true ) ; var sEmailBoxName = "" ; var nNode = oBusinessObject . selectSingleNode ( ".//Name" ) ; if ( nNode != null ) { sEmailBoxName = nNode . text ; xmlApplication . selectSingleNode ( ".//EmailBoxID" ) . text = sEmailBoxName ; } xmlApplication . selectSingleNode ( ".//id" ) . text = "sc_" + sEmailBoxName ; var sDescription = "Search Context containers" ; if ( sEmailBoxName != "" ) { sDescription += " for email box " + sEmailBoxName ; } xmlApplication . selectSingleNode ( ".//description" ) . text = sDescription ; xmlApplication . selectSingleNode ( ".//caption" ) . text = sDescription ; application . select ( xmlApplication ) ; } } }
This method is called when the context item 'Seach context containers' is clicked.
This method is called when the context item ' Seach context containers ' is clicked .
//The email box name
 //Fix the Application XML
 // Now load the application.
