xiaoding721
2023-11-13 e4edcfd0b987b239526f5375881b919789782dad
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: 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();
  *]
}