Quintiq file version 2.0
#parent: #root
Method InitializeDialog () id:Method_DialogCreateEditTransitionType_InitializeDialog
{
  #keys: '[150660.1.727782551]'
  Body:
  [*
    // By checking duration it will default to quantity if nothing is found
    data := DataHolderDialogData.Data();
    RadioButtonGroupQuantityDuration.BoundValue( TransitionType_MP::GetInputType( data.DefaultMinQuantity(),
                                                                                  data.HasInputMaxQuantity(),
                                                                                  data.DefaultMinDuration(),
                                                                                  data.HasInputMaxDuration() ) );
    // Update uom
    this.UpdateUoM();
    
    // Update field linked to radio button
    this.UpdateCheckboxState();
  *]
}
