Quintiq file version 2.0 #parent: #root Method SetAttributesAfterOnApplyData () id:Method_ScenarioManager_DialogCreateEditAccount_SetAttributesAfterOnApplyData { #keys: '[110704.0.773318092]' Body: [* // Things done after OnApplyData // Set the Dialog.Data parent for Commit, because when the component is disabled, no changes will be made to the corresponding attribute. data := Dialog.Data(); if( not CheckBoxHasParentAccount.Checked() ) { data.Parent( relset, null( Account ) ); } data.ParentName( guard( data.Parent().Name(), '' ) ); // Update user value which, the component is bind to a decl relation data.UserAccountTypeName( guard( data.BaseAccountType().Name(), '' ) ); *] }