Quintiq file version 2.0
#parent: #root
Response OnClick (
  SalesSegment_MP selection
) id:Response_ListSalesSegment_MenuNewSalesSegment_OnClick
{
  #keys: '[107654.0.932879487]'
  Body:
  [*
    // Create a new sales segment ( has selection in the list )
    dlg := construct( DialogCreateEditSalesSegment );
    salessegment := dlg.NewSalesSegment( this, selection );
    
    if( not isnull( salessegment ) )
    {
      objects := construct( SalesSegment_MPs );
      objects.Add( salessegment );
      ApplicationLibMacroPlanner.ExpandNavigationSelection( objects );
    }
  *]
  CanBindMultiple: false
  DefinitionID => /Responsedef_ListSalesSegment_Menu_OnClick
  Initiator: 'MenuNewSalesSegment'
}
