Quintiq file version 2.0
#parent: #root
Method GetKBStructure () id:Method_ScenarioManager_DialogCreateEditMPScenario_GetKBStructure
{
  #keys: '[11660.0.827226203]'
  Body:
  [*
    // get all valid kb branch
    if ( isnull( DataHolderKB.Data() ) )
    {
    
      kb := select( ScenarioManager.MDSScenarioManager(), MDSKBs, kb, kb.Name().ToUpper() = ScenarioManager.CompanyKBName().ToUpper() );
      kbid := KBID::Create( kb.Domain(), kb.Name() );
      editor := CKBEditor::Create();
      kbinfos := editor.GetKBStructure( kbid );
      DataHolderKB.Data( &kbinfos );
    }
  *]
}
