Quintiq file version 2.0
#parent: pnlActions/btnOk
Response OnClick () id:Response_pnlActions_btnOk_OnClick
{
  #keys: '[139394.0.522348943]'
  DefinitionID: 'Responsedef_WebButton_OnClick'
  Precondition:
  [*
    sanitycheckfeedback := '';
    return PeriodSpecification_MP::ValidateInput( feedback,
                                                  sanitycheckfeedback,
                                                  EditFieldID.Text(),
                                                  MacroPlan,
                                                  guard( DataHolderDialogData.Data().WrappedInstance(), null( PeriodSpecification_MP ) ),
                                                  DropDownStringListTimeUnit.Text(),
                                                  [Number]ApplicationMacroPlanner.FormatStringToReal( EditFieldNrOfTimeUnits.Text() ),
                                                  DateTimeSelectorPeriodAlignment.DateTime(),
                                                  [Number]ApplicationMacroPlanner.FormatStringToReal( EditFieldNrOfHistorialPeriods.Text() ),
                                                  [Number]ApplicationMacroPlanner.FormatStringToReal( EditFieldNrOfFuturePeriods.Text() ),
                                                  true /*checkunique*/ );
  *]
  QuillAction
  {
    Body:
    [*
      // On ok
      Form.OnOK();
    *]
    GroupServerCalls: false
  }
}
