yanweiyuan3
2023-09-11 7804ec7a70a7ffe3116daec64154c15842f8c513
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Quintiq file version 2.0
#parent: #root
Response OnClick () id:Response_ListSalesSegment_MenuNewSalesSegment_OnClick_730
{
  #keys: '[107654.0.945454384]'
  Body:
  [*
    // Create a new sales segment ( no selection in the list )
    dlg := construct( DialogCreateEditSalesSegment );
    salessegment := dlg.NewSalesSegment( this, null( SalesSegment_MP ) );
    
    if( not isnull( salessegment ) )
    {
      objects := construct( SalesSegment_MPs );
      objects.Add( salessegment );
      ApplicationLibMacroPlanner.ExpandNavigationSelection( objects );
    }
  *]
  CanBindMultiple: false
  DefinitionID => /Responsedef_ListSalesSegment_Menu_OnClick
  Initiator: 'MenuNewSalesSegment'
  Precondition:
  [*
    return MacroPlan::HasMacroPlan( MacroPlan, feedback );
  *]
}