Quintiq file version 2.0 
 | 
#parent: Toolbar/ButtonLeaveDomain 
 | 
Response OnClick () id:Response_Toolbar_ButtonLeaveDomain_OnClick 
 | 
{ 
 | 
  #keys: '[122752.0.423080102]' 
 | 
  Body: 
 | 
  [* 
 | 
    // Leave Domain without informing BootNode 
 | 
    prompt := "Are you sure you want to leave the Domain without informing the BootNode?"; 
 | 
    if ( MessageBox::Question( this, prompt, Translations::LibDEF_YesNo() ) = 0 ) 
 | 
    { 
 | 
      LibDEF_DataBroker.LeaveDomain( false ); 
 | 
    } 
 | 
  *] 
 | 
  CanBindMultiple: false 
 | 
  DefinitionID: 'Responsedef_GUIButtonBase_OnClick' 
 | 
  Precondition: 
 | 
  [* 
 | 
    if( Form.IsDEFDatasetsLoaded() ) 
 | 
    { 
 | 
      LibDEF_DataBroker.IsInADomainChecked( true ); 
 | 
      LibDEF_DataBroker.IsBootNodeChecked( false ); 
 | 
      LibDEF_DataBroker.IsBootNodeAvailableChecked( false ); 
 | 
    } 
 | 
    return FeedbackObject::IsAllowed(); 
 | 
  *] 
 | 
} 
 |