Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method OnParentAccountChanged ( 
 | 
  Account parentaccount 
 | 
) id:Method_DialogCreateEditAccountStructure_OnParentAccountChanged 
 | 
{ 
 | 
  #keys: '[139394.0.456474746]' 
 | 
  Body: 
 | 
  [* 
 | 
    // On parent account changed 
 | 
    //only set parent.baseaccounttype when it is not null, shouldnt set the dropdownlist to null if isnull(parentaccount) 
 | 
    if ( not isnull( parentaccount ) and not isnull( parentaccount.BaseAccountType() ) ) 
 | 
    { 
 | 
      DropDownListAccountType.Data( parentaccount.BaseAccountType() ); 
 | 
    } 
 | 
     
 | 
    DropDownListAccountType.Enabled( isnull( parentaccount ),  
 | 
                                     Translations::MP_Designer_DialogAccount_DisableStringSelectionAccountType() ); 
 | 
  *] 
 | 
} 
 |