| Quintiq file version 2.0 | 
| #parent: splitMain/btnAddLabel | 
| Response OnClick () id:Response_splitMain_btnAddLabel_OnClick | 
| { | 
|   #keys: '[136398.1.386205743]' | 
|   Body: | 
|   [* | 
|     name  := txtLabelName.Text().TrimBoth(); | 
|     value := txtLabelValue.Text().TrimBoth(); | 
|     dhSnapshot.Data().Label( relnew, Name := name, Value := value ); | 
|   *] | 
|   CanBindMultiple: false | 
|   DefinitionID: 'Responsedef_GUIButtonBase_OnClick' | 
|   Precondition: | 
|   [* | 
|     FeedbackObject::AddHard( not isnull( dhSnapshotSet.Data() ), "Please make sure you have a KpiSnapshotSetData dataset selected." ); | 
|     FeedbackObject::AddHard( txtLabelName.Text().TrimBoth() <> "", "Please fill in a label name." ); | 
|     FeedbackObject::AddHard( txtLabelValue.Text().TrimBoth() <> "", "Please fill in a label value." ); | 
|     return FeedbackObject::IsAllowed(); | 
|   *] | 
| } |