Quintiq file version 2.0
#parent: PanelEditLabelName/ButtonAddNewLabel
Response OnClick () id:Response_PanelEditLabelName_ButtonAddNewLabel_OnClick
{
  #keys: '[136398.1.795965504]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebButton_OnClick'
  GroupServerCalls: true
  Precondition:
  [*
    text := EditFieldLabel.Text();
    
    return KpiLabel::CanSave( KpiTracker, null( KpiLabel ), text );
  *]
  QuillAction
  {
    Body:
    [*
      // Create a new Label with the specified name.
      KpiLabel::Create( KpiTracker, EditFieldLabel.Text() );
    *]
  }
}
