Quintiq file version 2.0
#parent: ListInitElement
Response OnClick () id:Response_ListInitElement_MenuExport_OnClick
{
  #keys: '[134490.0.328873474]'
  Body:
  [*
    // Export process as nvt binary string    
    
    filename := Application.GetSaveFileName();
    
    if( filename.Length() > 0 )
    {
      wizardManager := Dialog.Data().OwningLibWiz_Wizard();
      binaryValue := wizardManager.ExportNVT( Dialog.Data() );
      binaryData := binaryValue.AsBinaryData();
      Application.WriteBinaryFile( filename, binaryData );
    }
  *]
  DefinitionID => /ListInitElement/Responsedef_ListInitElement_Menu_OnClick
  Initiator: 'MenuExport'
  Precondition:
  [*
    feedback := "No wizard instance created.";
    return not isnull( Dialog.Data() );
  *]
}
