Quintiq file version 2.0
#parent: ListSupplyTargets
Response OnClick () id:Response_ListSupplyTargets_MenuCreate_OnClick
{
  #keys: '[139394.1.52211917]'
  CanBindMultiple: false
  DefinitionID => /ListSupplyTargets/Responsedef_ListScenario_WebMenu_OnClick
  Initiator: 'MenuCreate'
  Precondition:
  [*
    return MacroPlan::HasMacroPlan( DataHolderActiveScenario.Data(), feedback )
           and Unit::HasUnitAndHasPeriod( feedback, MacroPlan )
           and SupplySpecification::CanCreate( feedback, DataHolderUnit.Data(), DataHolderProduct.Data() );
  *]
  QuillAction
  {
    Body:
    [*
      // New supply spec
      dlg := construct( DialogCreateEditSupplyTarget );
      dlg.New( FormSupplyTarget );
    *]
    GroupServerCalls: false
  }
}
