Quintiq file version 2.0
#parent: #root
Method UpdateLabels () id:Method_DialogCreateEditUOM_UpdateLabels
{
  #keys: '[139394.0.546857605]'
  Body:
  [*
    // Update label
    defaultUOM := guard( DataHolderDialogData.Data().MacroPlan().DefaultUnitOfMeasure(),
                         null( UnitOfMeasure_MP ) );
    factorLabel := ifexpr( EditFieldName.Text() = '', DataHolderDialogData.Data().Name(), EditFieldName.Text() ) 
                   + ' to 1 ' 
                   + guard( defaultUOM.Name(), '' )
    
    LabelFactor.Text( factorLabel );
  *]
}
