Quintiq file version 2.0
#parent: #root
Method OpenViewID (
  String viewid
) id:Method_GlobalStateKpiTracker_OpenViewID
{
  #keys: '[145552.0.1201663411]'
  Body:
  [*
    // Opens view
    view := select( ApplicationScope.ViewManager(), Views, vw, vw.Id()= viewid );
    if( isnull( view ) )
    {
      WebMessageBox::Error( 'Missing view: ' + viewid );
    }
    else
    {
      ApplicationScope.ViewManager().LoadView( view );
    }
  *]
}
