| Quintiq file version 2.0 | 
| #parent: ListCurrencyRate | 
| Response OnClick ( | 
|   Currency_MP masterselection | 
| ) id:Response_ListCurrencyRate_MenuNewCurrencyRate_OnClick | 
| { | 
|   #keys: '[11660.0.354465811]' | 
|   Body: | 
|   [* | 
|     // Create a new currency rate | 
|      | 
|     dlg := construct( DialogCreateEditCurrencyRate ); | 
|     currencyrate := dlg.NewCurrencyRate( this, masterselection ); | 
|      | 
|     ApplicationLibMacroPlanner.AutoExpandSelection( this, currencyrate ); | 
|   *] | 
|   CanBindMultiple: false | 
|   DefinitionID => /ListCurrencyRate/Responsedef_ListCurrencyRate_Menu_OnClick | 
|   Initiator: 'MenuNewCurrencyRate' | 
|   Precondition: | 
|   [* | 
|     feedback := Translations::MP_CurrencyRate_ValidateInput_IsBaseCurrency(); | 
|     return not masterselection.IsBase() and MacroPlan::HasMacroPlan( MacroPlan, feedback ); | 
|   *] | 
|   UserRequiresReadWrite: true | 
| } |