Quintiq file version 2.0
#parent: ButtonRestoreView
Response OnClick () id:Response_FormSupplyChainOverview_ButtonRestoreView_OnClick
{
  #keys: '[11766.1.315190632]'
  Body:
  [*
    // Restore layout to default layout
    feedback := '';
    if( ValueHolderIsShownSupplyChainOverviewWarning.Value().Length() > 0 )
    {
      message := ValueHolderIsShownSupplyChainOverviewWarning.Value();
    
      if( MessageBox::Warning( this, message, '&Yes|&No' ) = 0 )
      {
        DataHolderView.Data().RestoreDefaultLayout( feedback );
        ApplicationLibMacroPlanner.ResetSupplyChainOverviewWarning();
      }
    }
    else
    {
      DataHolderView.Data().RestoreDefaultLayout( feedback );
    }
  *]
  CanBindMultiple: false
  DefinitionID: 'Responsedef_GUIButtonBase_OnClick'
  Precondition:
  [*
    return not isnull( DataHolderView.Data() );
  *]
  UserRequiresReadWrite: true
}
