Quintiq file version 2.0
#parent: DataHolderFileProvider
Response OnCreated () id:Response_DialogImport_DataHolderFileProvider_OnCreated
{
  #keys: '[136682.0.2011188382]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebComponent_OnCreated'
  GroupServerCalls: true
  QuillAction
  {
    Body:
    [*
      /* Set DataHolderDirectoryFileItem
      Workaround for fileItems not being filled in above call*/
      
      providerslist := FileProvider::ListFileProviders();
      providers := providerslist.Tokenize( ';' );
      
      fp := FileProvider::Create( providers.Element( 0 ) ); // 3DDrive is the only one
      DataHolderFileProvider.Data( &fp );
      
      fileprovider := DataHolderFileProvider.Data();
      folder := fileprovider.CreateFileItemFromURL( "" );
      DataHolderDirectoryFileItem.Data(&folder);
      fileItems := fileprovider.List( DataHolderDirectoryFileItem.Data() );
      try 
      {                           
            
        DataHolderFileItems.Data( &fileItems );
      }
      onerror
      {
        // Reset the last used drive
        
      }
    *]
  }
}
