BeepPadUI/Workflow/shared/messaging.js
// select a specific item in the list control
select a specific item in the list control
select a specific item in the list control
function lctrlSelectItem(elmToSelect)
{
	if(elmToSelect)
	{
		var elmMsgList = document.getElementById("msglist");
		if(elmMsgList)
		{
			for( var elmItr = 0 ; elmItr < elmMsgList.children.length ; elmItr++ )
			{
				elmMsgList.children[elmItr].className = "listunsel";
			}
			elmToSelect.className = "listsel";
			elmSelected = elmToSelect;
			if ((elmSelected != null) && (elmSelected.id != null) && (elmSelected.id.length > 0))
			{
				var elmIframe = document.getElementById("snipframe");
				if(elmIframe)
				{
					var contentURL = window.external.GetMessageLocalPath(elmSelected.id);
					elmIframe.src = window.external.QualifyRelativePath( contentURL );
				}
			}
		}
	}
}
function lctrlSelectItem ( elmToSelect ) { if ( elmToSelect ) { var elmMsgList = document . getElementById ( "msglist" ) ; if ( elmMsgList ) { for ( var elmItr = 0 ; elmItr < elmMsgList . children . length ; elmItr ++ ) { elmMsgList . children [ elmItr ] . className = "listunsel" ; } elmToSelect . className = "listsel" ; elmSelected = elmToSelect ; if ( ( elmSelected != null ) && ( elmSelected . id != null ) && ( elmSelected . id . length > 0 ) ) { var elmIframe = document . getElementById ( "snipframe" ) ; if ( elmIframe ) { var contentURL = window . external . GetMessageLocalPath ( elmSelected . id ) ; elmIframe . src = window . external . QualifyRelativePath ( contentURL ) ; } } } } }
select a specific item in the list control
select a specific item in the list control