Quintiq file version 2.0
#parent: GroupPanelAcceptanceSettings/RadioButtonGroupAbsoluteOrRelative
Response OnCreated () id:Response_GroupPanelAcceptanceSettings_RadioButtonGroupAbsoluteOrRelative_OnCreated
{
  #keys: '[139596.4.1516200422]'
  Body:
  [*
    data := Dialog.Data();
    value := ifexpr( data.HasCellOverride(), data.CellIsAbsoluteTarget(), data.KPIDefinition().IsAbsoluteTarget() )
    
    if( value )
    {
      RadioButtonGroupAbsoluteOrRelative.BoundValue( 'absolute' );
      EditorAcceptancePercentage.Enabled( false );
      EditorAcceptanceValue.Enabled( true );
    }
    else
    {
      RadioButtonGroupAbsoluteOrRelative.BoundValue( 'relative' );
      EditorAcceptancePercentage.Enabled( true );
      EditorAcceptanceValue.Enabled( false );
    }
  *]
  CanBindMultiple: false
  DefinitionID: 'Responsedef_GUIComponent_OnCreated'
}
