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
22
23
24
25
26
27
Quintiq file version 2.0
#parent: #root
Response OnCreated () id:Response_DialogSmartPlan_OnCreated
{
  #keys: '[137862.0.157066974]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebComponent_OnCreated'
  GroupServerCalls: true
  QuillAction
  {
    Body:
    [*
      // On created, set default values and initial state of UI
      
      // These 2 lines moved from before ShowFormModal() to OnCreated() - to not block dialog for too long before displaying to user
      DialogSmartPlan.SetDefaultValues(); 
      DialogSmartPlan.EnableDisableComponentsForBatchEdit( DataHolderSelections.Data().Size() > 1 );
      
      // Show hide warning
      DialogSmartPlan.EnableDisableTotalSupply();
      DialogSmartPlan.ShowHideWarning();
      DialogSmartPlan.EnableButtonSelectUnit();
      DialogSmartPlan.EnableButtonSavePreferences( false );
      DialogSmartPlan.ChangeRadioButtonUpstreamDownstream( MacroPlan.SmartPlanSetting().SmartPlanDirection() );
    *]
  }
}