Quintiq file version 2.0
#parent: ListDisaggregationFactor
Response OnClick () id:Response_ListDisaggregationFactor_MenuNewDisaggregationFactor_OnClick
{
  #keys: '[11660.0.757984636]'
  Body:
  [*
    // Create a new disaggregation factor
    dlg := construct( DialogCreateEditDisaggregationFactor );
    disaggregationfactor := dlg.NewDisaggregationFactor( this );
    
    ApplicationLibMacroPlanner.AutoExpandSelection( this, disaggregationfactor );
  *]
  CanBindMultiple: false
  DefinitionID => /ListDisaggregationFactor/Responsedef_ListDisaggregationFactor_Menu_OnClick
  Initiator: 'MenuNewDisaggregationFactor'
  Precondition:
  [*
    return Product_MP::HasProductAndHasPeriod( feedback, MacroPlan )
           and DisaggregationFactor::CanCreate( feedback, DataHolderChildProducts.Data(), DataHolderChildStockingPoints.Data() );
  *]
}
