Quintiq file version 2.0
#parent: pnlActions/btnOk
Response OnClick () id:Response_pnlActions_btnOk_OnClick
{
  #keys: '[146140.1.635406607]'
  DefinitionID: 'Responsedef_WebButton_OnClick'
  GroupServerCalls: true
  Precondition:
  [*
    // Check if the OptimizerPuzzle is unique
    optimizerpuzzlewip := DataHolderOptimizerPuzzleWIP.Data();
    
    return not isnull( optimizerpuzzlewip )
           and OptimizerPuzzle::ValidateInput( feedback,
                                               MacroPlan,
                                               optimizerpuzzlewip,
                                               EditFieldName.Text() );
  *]
  QuillAction
  {
    Body:
    [*
      // User click on OK button
      // Will create or edit or copy Optimizer Puzzle
      Form.OnOK();
    *]
  }
}
