Quintiq file version 2.0
#parent: ListUnitPeriodQuantity
Response OnClick (
  structured[UnitPeriodQuantity] selection
) id:Response_ListUnitPeriodQuantity_MenuEditCapacityInListUnitPeriodQuantity_OnClick
{
  #keys: '[105706.0.2072802191]'
  Body:
  [*
    // Create or update the unit capacity for the selected periods.
    
    dlg := construct( DialogCreateEditUnitCapacity );
    dlg.EditUnitCapacityFromListUnitPeriodQuantity( this, selection );
  *]
  CanBindMultiple: false
  DefinitionID => /ListUnitPeriodQuantity/Responsedef_ListUnitPeriodQuantity_Menu_OnClick
  Initiator: 'MenuEditCapacityInListUnitPeriodQuantity'
  Precondition:
  [*
    return UnitPeriod::CanEditCapacities( selection, feedback );
  *]
  UserRequiresReadWrite: true
}
