src/web/js/mgtSearchContainers.js
/**
 * This method is called when the context item 'View all emails' is clicked. It will
 * start up the mgtSearchEmailMsgs screen and pass on the current context container ID.
 * 
 * @return Nothing.
 */
This method is called when the context item 'View all emails' is clicked. It will
start up the mgtSearchEmailMsgs screen and pass on the current context container ID.

@return Nothing.
This method is called when the context item ' View all emails ' is clicked . It will start up the mgtSearchEmailMsgs screen and pass on the current context container ID . @return Nothing .
function handleContextSearchEmailMessages()
{
	if (DEBUG_USERS.indexOf(system.getUser().name) > -1)
	{
		debugger;
	}
	var oActiveElement = g_cmContainerDetails.activeElement;
	if (oActiveElement != null)
	{
		var oBusinessObject = oActiveElement.businessObject;
		if (oBusinessObject != null)
		{
			var xmlApplication = xmlSearchEmailMessages.documentElement.cloneNode(true);
			var sContextContainerID = "";
			var nNode = oBusinessObject.selectSingleNode(".//ID");
			if (nNode != null)
			{
				sContextContainerID = nNode.text;
				xmlApplication.selectSingleNode(".//ContextContainerID").text = sContextContainerID;
			}
			xmlApplication.selectSingleNode(".//id").text = "sc_" + sContextContainerID;
			var sDescription = "Search emails";
			if (sContextContainerID != "")
			{
				sDescription += " for context container " + sContextContainerID;
			}
			xmlApplication.selectSingleNode(".//description").text = sDescription;
			xmlApplication.selectSingleNode(".//caption").text = sDescription;
			application.select(xmlApplication);
		}
	}
}
function handleContextSearchEmailMessages ( ) { if ( DEBUG_USERS . indexOf ( system . getUser ( ) . name ) > - 1 ) { debugger ; } var oActiveElement = g_cmContainerDetails . activeElement ; if ( oActiveElement != null ) { var oBusinessObject = oActiveElement . businessObject ; if ( oBusinessObject != null ) { var xmlApplication = xmlSearchEmailMessages . documentElement . cloneNode ( true ) ; var sContextContainerID = "" ; var nNode = oBusinessObject . selectSingleNode ( ".//ID" ) ; if ( nNode != null ) { sContextContainerID = nNode . text ; xmlApplication . selectSingleNode ( ".//ContextContainerID" ) . text = sContextContainerID ; } xmlApplication . selectSingleNode ( ".//id" ) . text = "sc_" + sContextContainerID ; var sDescription = "Search emails" ; if ( sContextContainerID != "" ) { sDescription += " for context container " + sContextContainerID ; } xmlApplication . selectSingleNode ( ".//description" ) . text = sDescription ; xmlApplication . selectSingleNode ( ".//caption" ) . text = sDescription ; application . select ( xmlApplication ) ; } } }
This method is called when the context item 'View all emails' is clicked.
This method is called when the context item ' View all emails ' is clicked .
//The email box ID
 //Fix the Application XML
 // Now load the application.
