Quintiq file version 2.0
#parent: CheckBoxHasInputMaxQuantity
Response OnUserChange () id:Response_DialogCreateEditCampaign_MP_CheckBoxHasInputMaxQuantity_OnUserChange
{
  #keys: '[149260.0.411110707]'
  Body:
  [*
    //Set duration value and indicator visibility upon user change
    data := Dialog.Data();
    maxqty := ifexpr( CheckBoxHasInputMaxQuantity.Checked(),
                      ifexpr( data.MaxQuantity() > 0, 
                              data.MaxQuantity(),
                              data.CampaignType_MP().DefaultMaxQuantity() ),
                      0 );
    EditorCampaignMaxQuantity.Text( [String] maxqty );
    Dialog.UpdateCheckboxState();
  *]
  CanBindMultiple: false
  DefinitionID: 'Responsedef_CheckBox_OnUserChange'
}
