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() );
    *]
  }
}
