Quintiq file version 2.0
#parent: ListPostponementSpecification
Response OnClick () id:Response_ListPostponementSpecification_MenuNewPostponementSpecification_OnClick
{
  #keys: '[130036.1.306631504]'
  Body:
  [*
    // Create a new PostponementSpecification
    dlg := construct( DialogCreateEditPostponementSpecification );
    obj := dlg.New( this );
                              
    if( not isnull( obj ) )
    {                          
      ApplicationLibMacroPlanner.AutoExpandSelection( ListPostponementSpecification, obj );
    }
  *]
  CanBindMultiple: false
  DefinitionID => /ListPostponementSpecification/Responsedef_ListPostponementSpecification_Menu_OnClick
  Initiator: 'MenuNewPostponementSpecification'
  Precondition:
  [*
    feedback := Translations::MP_PostponementSpecification_CanCreateNew_EmptySalesSegNavSelection();
    return DataHolderChildSalesSegments.Data().Size() > 0;
  *]
}
