function CMainWnd_update(subject)
{
// validate the subject
if(typeof subject == "undefined" || subject === null) {
return;
}
// if we're being notified by the selection controller that selection has changed, notify the toolbar and context menu
if(subject instanceof CSelectionController)
{
var rvToolbar = this.getToolbarControl();
if(typeof rvToolbar != "undefined" && rvToolbar != null)
{
var oDrillMgr = this.getCV().getDrillMgr();
if(oDrillMgr)
{
var gotoToolbarButton = rvToolbar.getItem("goto");
if(gotoToolbarButton)
{
var menu = gotoToolbarButton.getMenu();
if(menu)
{
// when the selection changes clear out the cached report drill targets (if any)
menu.clear();
}
}