Quintiq file version 2.0
#parent: Toolbar/ButtonOk
Response OnClick () id:Response_Toolbar_ButtonOk_OnClick
{
  #keys: '[11122.0.37337382]'
  Body:
  [*
    Dialog.EndModal(1);
  *]
  DefinitionID: 'Responsedef_GUIButtonBase_OnClick'
  Precondition:
  [*
    feedback := Dialog.CheckKBBranchName( EditorBranch.Text() );
    return feedback = ''
          and Scenario::ValidateInput( feedback,
                                        ScenarioManager,
                                        EditorScenarioName.Text(),
                                        Dialog.Data(),
                                        SelectionKBBranch.BoundValue(),
                                        RadioButtonGroupMode.BoundValue(),
                                        EditorBranch.Text(),
                                        RadioButtonGroupStorageState.BoundValue(),
                                        Domain.MDSStorageDefinitionManager().Enabled(),
                                        Domain.MDSStorageDefinitionManager().DatasetStoreEnabled(),
                                        Domain.MDSStorageDefinitionManager().DatabaseEnabled() );
  *]
  UserRequiresReadWrite: true
}
