| Quintiq file version 2.0 | 
| #parent: #root | 
| MethodOverride InitializeWebView | 
| { | 
|   TextBody: | 
|   [* | 
|     //Default set to Web supply planning view | 
|     view := ""; | 
|     // Account | 
|     if ( this.Group() = Account_MP::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebAccountView();   | 
|     } | 
|     else if ( this.Group() = ActualUnitPeriod::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebSupplyChainPlanningView(); | 
|     } | 
|     else if ( this.Group()= ActualProductInStockingPointInPeriod::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebActualInventoryView(); | 
|     } | 
|     else if ( this.Group()= Campaign_MP::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebCampaignPlanningView(); | 
|     } | 
|      | 
|     else if ( this.Group()= CampaignType_MP::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebCampaignTypeAndTransitionTypeView(); | 
|     } | 
|     else if ( this.Group()= ConversionFactor::GetDefinitionName()) | 
|     { | 
|       view := SanityCheckGroup::GetWebUnitOfMeasurementsView();   | 
|     } | 
|     else if( this.Group()= Currency_MP::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebCurrencyView(); | 
|     } | 
|     else if ( this.Group()= CurrencyRate_MP::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebCurrencyView(); | 
|     } | 
|     else if ( this.Group()= Demand_MP::GetDefinitionName() )  | 
|     { | 
|       view := SanityCheckGroup::GetWebPeggingView(); | 
|     }           | 
|     else if ( this.Group()= DependentDemand::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebSupplyChainPlanningView();  | 
|     } | 
|     else if ( this.Group()= Fulfillment::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebPeggingView();   | 
|     } | 
|     else if ( this.Group()= FulfillmentRestriction::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebFulfillmentRestrictionView(); | 
|     } | 
|     else if ( this.Group()= FeedbackPeriodTaskOperation::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebFeedbacksView();    | 
|     } | 
|     else if ( this.Group()= FeedbackProductInTrip::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebFeedbacksView();    | 
|     } | 
|     else if ( this.Group()= Ingredient::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebRecipesView(); | 
|     } | 
|     else if ( this.Group()= InventoryValueAndCost::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebInventoryValueView() | 
|     } | 
|     else if ( this.Group() = InventorySpecification::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebInventoryTargetView();    | 
|     } | 
|     else if ( this.Group() = InventorySupply::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetInventorySuppliesView(); | 
|     } | 
|     else if ( this.Group()= InventorySupplyCost::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebInventorySupplyCostView();   | 
|     } | 
|     else if ( this.Group()= Lane::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebLanesView(); | 
|     } | 
|     else if ( this.Group() = LaneCost::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebTransportationCostView(); | 
|     } | 
|     else if ( this.Group() = LaneLeg::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebLanesView(); | 
|     } | 
|     else if( this.Group() = LaneLegCost::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebTransportationCostView(); | 
|     } | 
|     else if ( this.Group() = Operation::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebRoutingsView();   | 
|     } | 
|     else if ( this.Group()= OperationLink::GetDefinitionName() ) | 
|     { | 
|       view:= SanityCheckGroup::GetWebRoutingsView();   | 
|     } | 
|     else if( this.Group() = OperationCost::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebOperationCostView(); | 
|     } | 
|     else if ( this.Group() = OperationInCampaignType::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebCampaignTypeAndTransitionTypeView(); | 
|     } | 
|     else if ( this.Group() = OperationInput::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebRoutingsView(); | 
|     } | 
|     else if ( this.Group() = OperationInputGroup::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebRoutingsView(); | 
|     } | 
|     else if ( this.Group()= OperationInputSet::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebRoutingsView();   | 
|     } | 
|     else if ( this.Group() = OperationOutput::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebRoutingsView();   | 
|     } | 
|     else if ( this.Group() = PeriodSpecification_MP::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebPeriodsView();   | 
|     } | 
|     else if ( this.Group() = PeriodTaskLaneLeg::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebSupplyChainPlanningView();   | 
|     } | 
|     else if ( this.Group() = PeriodTaskOperation::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebSupplyChainPlanningView();   | 
|     } | 
|     else if ( this.Group()= PISPAccount::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebInventoryValueView(); | 
|     } | 
|     else if ( this.Group()= PISPSpecification::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebProductsView();   | 
|     } | 
|     else if ( this.Group() = PostponementSpecification::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebPostponementSpecificationView();   | 
|     } | 
|     else if ( this.Group() = PostponedSalesDemandCost::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebPostponementSpecificationView(); | 
|     } | 
|     else if ( this.Group() = Priority::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebPrioritiesView();   | 
|     } | 
|     else if ( this.Group() = Product_MP::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebProductsView();   | 
|     } | 
|     else if ( this.Group() = ProductInLane::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebLanesView();   | 
|     } | 
|     else if ( this.Group() = ProductInStockingPoint_MP::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebProductsView();   | 
|     } | 
|     else if ( this.Group() = ProductInStockingPointInPeriod::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebPeggingView(); | 
|     } | 
|     else if ( this.Group() = ProductInTrip::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebSupplyChainPlanningView();   | 
|     } | 
|     else if ( this.Group()= ProductLevel_MP::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebProductsView(); | 
|     } | 
|     else if ( this.Group() = Recipe::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebRecipesView();   | 
|     } | 
|     else if ( this.Group() = RecipeIngredient::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebRecipesView();   | 
|     } | 
|     else if ( this.Group() = RecipeWithEffectiveDate::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebRecipesView();   | 
|     } | 
|     else if ( this.Group() = Routing::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebRoutingsView();   | 
|     } | 
|     else if ( this.Group() = RoutingStep::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebRoutingsView();   | 
|     } | 
|     else if ( this.Group() = SafetyStock::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebSafetyStocksView(); | 
|     } | 
|     else if ( this.Group() = Forecast::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebForecastView();   | 
|     } | 
|     else if ( this.Group() = SalesLevel_MP::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebSalesSegmentView(); | 
|     } | 
|     else if ( this.Group() = SalesSegment_MP::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebSalesSegmentView();   | 
|     } | 
|     else if ( this.Group()= ShiftDay::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebUnitTimeCapacitiesView();   | 
|     } | 
|     else if ( this.Group() = ShiftPattern::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebUnitTimeCapacitiesView();   | 
|     } | 
|     else if ( this.Group() = StockingPoint_MP::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebEntitiesView();   | 
|     } | 
|     else if ( this.Group() = StockingPointInLane::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebLanesView();   | 
|     } | 
|     else if( this.Group() = StockingPointAccount::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebStockingPointCostsView(); | 
|     } | 
|     else if ( this.Group() = StockingPointCapacity::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebStockingPointCapacitiesView(); | 
|     } | 
|     else if ( this.Group() = StockingPointCost::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebStockingPointCostsView(); | 
|     } | 
|     else if ( this.Group() = StockingPointUnit::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebRoutingsView();   | 
|     } | 
|     else if ( this.Group() = SupplySpecification::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebSupplyTargetsView(); | 
|     } | 
|     else if ( this.Group() = ServiceLevel::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebServiceLevelsView();   | 
|     } | 
|     else if ( this.Group() = FulfillmentTarget::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebFulfillmentTargetsView();   | 
|     } | 
|     else if ( this.Group() = TransportCapacity::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebTransportCapacitiesView();   | 
|     } | 
|     else if ( this.Group() = Unit::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebEntitiesView();   | 
|     } | 
|     else if ( this.Group() = UnitAccount::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebUnitCostView();   | 
|     } | 
|     else if ( this.Group() = UnitAvailability::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebUnitTimeCapacitiesView(); | 
|     } | 
|     else if ( this.Group() = UnitCalendarElement::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebCalendarView();   | 
|     } | 
|     else if ( this.Group() = UnitCapacity::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebUnitQuantityView();   | 
|     } | 
|     else if ( this.Group() = UnitCost::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebUnitCostView(); | 
|     } | 
|     else if ( this.Group() = UnitOfMeasure_MP::GetDefinitionName() ) | 
|     { | 
|       view := SanityCheckGroup::GetWebUnitOfMeasurementsView();   | 
|     } | 
|      | 
|     if ( this.WebView().Length() =0 ) | 
|     { | 
|       this.WebView( view ); | 
|     } | 
|   *] | 
| } |