| Quintiq file version 2.0 | 
| #parent: pHeader/bRestore | 
| Response OnClick () id:Response_pHeader_bRestore_OnClick | 
| { | 
|   #keys: '[413988.0.1297974069]' | 
|   CanBindMultiple: false | 
|   DefinitionID: 'Responsedef_WebButton_OnClick' | 
|   Precondition: | 
|   [* | 
|     return not isnull( MacroPlan ); | 
|   *] | 
|   QuillAction | 
|   { | 
|     Body: | 
|     [* | 
|       currentOPT := dhOfflinePlanTable.Data(); | 
|       targetOPT  := maxselect( MacroPlan, OfflinePlanTable, tempOPT, tempOPT <> currentOPT, tempOPT.SaveDateTime() ); | 
|       if ( not isnull( targetOPT ) ) { | 
|         currentOPT.Delete(); | 
|         dhOfflinePlanTable.Data( targetOPT ); | 
|       } | 
|        | 
|       WebMessageBox::Success( Translations::A_VWED_Success() ); | 
|     *] | 
|     GroupServerCalls: false | 
|   } | 
| } |