admin
2025-01-22 7e31442f0e9b07764e9c6a9680d3d4aeba5fe1de
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Quintiq file version 2.0
#parent: DataHolderAllUsers
Response OnDataChanged () id:Response_SWF_CustomDrawComponentProcessDashboard_DataHolderAllUsers_OnDataChanged
{
  #keys: '[134266.0.466083567]'
  Body:
  [*
    // If there are any changes to all users, be it due to full sync or sync
    // make sure the current user persists  
    currentUser := SWF_DataHolderCurrentUserBAK.Data();
    
    if( not isnull( currentUser ) )
    {
      newCurrentUser := SWF_WorkflowDataset.RestoreCurrentUser( currentUser.Name(),
                                                                currentUser.Description(),
                                                                currentUser.Title(),
                                                                currentUser.Email(),
                                                                currentUser.Location(),
                                                                currentUser.Phone(),
                                                                currentUser.IsActive(),
                                                                currentUser.HasUpdatedProfile() );
    
      SWF_DataHolderCurrentUser.Data( newCurrentUser );
    }
  *]
  CanBindMultiple: false
  DefinitionID: 'Responsedef_GUIComponent_OnDataChanged'
  Precondition:
  [*
    return not isnull( SWF_WorkflowDataset )
           and not isnull( SWF_CommunicationDataset );
  *]
}