xiaoding721
2023-11-13 e4edcfd0b987b239526f5375881b919789782dad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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(), '' ) );
  *]
}