AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 29.10.2012, 19:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Регистрация: 28.10.2006
ax-erp: How to import multiple file from a folder?
Источник: http://microsoft-dynamics-ax-erp.blo...om-folder.html
==============


container createListOfFiles(FilePath _path = path, FileNameType _pattern = pattern)
{
System.Array files;
int fileCount;
int i;
str nextFile;


new InteropPermission(InteropKind::ClrInterop).assert();

info(strfmt('Search in: %1 %2', _path, _pattern));
listOfFiles = connull();
actIx = 0;
files = System.IO.Directory::GetFiles(_path, _pattern);
if (files)
{
fileCount = files.get_Length();
info(strFmt('Number of files in directory: %1', fileCount));
for(i=0; i < fileCount; i++)
{
nextFile = files.GetValue(i);
listOfFiles += nextFile;
}
}

CodeAccessPermission::revertAssert();
info(strFmt('Files count: %1', conlen(listOfFiles)));
return listOfFiles;
}




Источник: http://microsoft-dynamics-ax-erp.blo...om-folder.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Microsoft Dynamics CRM Team Blog: How to Import attachments programmatically Blog bot Dynamics CRM: Blogs 0 07.08.2012 00:13
emeadaxsupport: Dynamics AX 2012 Services: How to process big messages using File adapter Blog bot DAX Blogs 0 03.07.2012 00:12
emeadaxsupport: New Content for Microsoft Dynamics AX 2012 : October 2011 Blog bot DAX Blogs 0 27.10.2011 17:11
daxdilip: Whats New in Dynamics AX 2012 (A brief extract from the recently held Tech Conf.) Blog bot DAX Blogs 7 31.01.2011 12:35
emeadaxsupport: Identical AX 2009 AUC File Created For Multiple AX Installations Blog bot DAX Blogs 0 25.01.2010 16:05

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 16:05.