Quintiq file version 2.0
#parent: gcContextMenuCapacityPlanning/MenuCreate
Response OnClick (
  UnitPeriod element
) id:Response_gcContextMenuCapacityPlanning_MenuCreate_OnClick
{
  #keys: '[148910.0.104126314]'
  CanBindMultiple: false
  DefinitionID => /gcContextMenuCapacityPlanning/Responsedef_gcContextMenuCapacityPlanning_MenuCreate_OnClick
  Precondition:
  [*
    return element.Unit().CanCreateCampaign( feedback, null( CampaignType_MP ) )
  *]
  QuillAction
  {
    Body:
    [*
      // Create a campaign
      
      dlg := construct( DialogCreateEditCampaign );
      dlg.New( null( FormCampaign ), element.Unit(), null( CampaignType_MP ) );
    *]
    GroupServerCalls: false
  }
}
