Quintiq file version 2.0
#parent: Toolbar/btnOk
Response OnClick () id:Response_Toolbar_btnOk_OnClick
{
  #keys: '[132254.0.12608438]'
  Body:
  [*
    Dialog.ApplyChanges();
    Dialog.EndModal(1);
  *]
  DefinitionID: 'Responsedef_GUIButtonBase_OnClick'
  Precondition:
  [*
    hasselection := SelectionView.BoundValue() <> '';
    result := ifexpr( Dialog.Data().NeedsViewToOpen(),
                      hasselection,
                      true );
    
    if( not result )
    {
      feedback := "Assign a view for " + Dialog.Data().Name() + " group.";
    }
    
    return result;
  *]
}
