Quintiq file version 2.0
#parent: DataHolderSettingsForms
Response OnDataChanged () id:Response_ApplicationMacroPlanner_DataHolderSettingsForms_OnDataChanged
{
  #keys: '[137862.0.1964307017]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebComponent_OnDataChanged'
  QuillAction
  {
    Body:
    [*
      //This is a workaround 
      //Because we're unable to set Button.IsPressed( false) during on close of the respecctive settings form
      
      //Unpress all the settings buttons
      frm := select( DataHolderSettingsForms.Data(), Elements, e, e.istype( FormPriorities ) )
      if( isnull( frm ) )
      {
        ButtonPriorities.IsPressed( false );
      }
      
      frm := select( DataHolderSettingsForms.Data(), Elements, e, e.istype( FormFulfillmentTarget ) )
      if( isnull( frm ) )
      {
        ButtonFulfillmentTargets.IsPressed( false );  
      }
      
      frm := select( DataHolderSettingsForms.Data(), Elements, e, e.istype( FormFulfillmentRestriction ) )
      if( isnull( frm ) )
      {
        ButtonFulfillmentRestrictions.IsPressed( false );  
      }
      
      frm := select( DataHolderSettingsForms.Data(), Elements, e, e.istype( FormPostponementSettings ) )
      if( isnull( frm ) )
      {
        ButtonPostponementSettings.IsPressed( false );  
      }
      
      frm := select( DataHolderSettingsForms.Data(), Elements, e, e.istype( FormSanityCheck ) )
      if( isnull( frm ) )
      {
        ButtonDoSanityCheck.IsPressed( false );  
      }
      
      frm := select( DataHolderSettingsForms.Data(), Elements, e, e.istype( FormSafetyStockParameter ) ) 
      if( isnull( frm ) )
      {
        ButtonSafetyStockParameters.IsPressed( false );  
      }
      
      frm := select( DataHolderSettingsForms.Data(), Elements, e, e.istype( FormDeviationDetection ) )  
      if( isnull( frm ) )
      {
        ButtonDeviationDetection.IsPressed( false );  
      }
      
      frm := select( DataHolderSettingsForms.Data(), Elements, e, e.istype( FormDefaultCapacities ) ) 
      if( isnull( frm ) )
      {
        ButtonDefaultCapacities.IsPressed( false );  
      }
      
      frm := select( DataHolderSettingsForms.Data(), Elements, e, e.istype( FormBottleneckDetectionParameters ) ) 
      if( isnull( frm ) )
      {
        ButtonBottleneckDetection.IsPressed( false );  
      }
      
      frm := select( DataHolderSettingsForms.Data(), Elements, e, e.istype( FormServiceLevel ) )
      if( isnull( frm ) )
      {
        ButtonServiceLevel.IsPressed( false );  
      }
    *]
    GroupServerCalls: false
  }
}
