limj
2023-10-24 93652435728de839582440eefd5122c281181d35
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: DataHolderWorkaround
Response OnDataChanged () id:Response_DialogCreateEditShiftPattern_DataHolderWorkaround_OnDataChanged
{
  #keys: '[139394.1.446393861]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebComponent_OnDataChanged'
  QuillAction
  {
    Body:
    [*
      // Following core tech's suggestion, change the Name in OnCreated of the dialog will 
      // introduce the racing condition where the Edit field have a binding, 
      // so its either the binding kick in first or the OnCreated kick in first depend on the computer.
      // We can make a new DataHolder which have an extractor extract from DataHolderDialogData and in 
      // the new DataHolder.OnDataChanged we update the Edit field, this guarantees that the call only happen after the data binding.
      Form.InitializeComponents();
    *]
    GroupServerCalls: false
  }
}