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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 12.01.2011, 19:40   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006


In this blog you will find attached a very simple usage of .NET interoperability with Dynamics NAV 2009 R2 with the objective of basic file management (move, copy, open, delete) WITHOUT using the FILE virtual table and is intended just to familiarize with this brand new feature proposed with NAV 2009 R2 release.

File management is made at client side (RoleTailored client side).

If you want to know more about .NET interoperability for NAV 2009 R2, please refer to MSDN link:

Extending Microsoft Dynamics NAV Using Microsoft .NET Framework Interoperability

http://msdn.microsoft.com/en-us/library/gg502499.aspx

.NET interoperability (variables) are generally based on the System.IO namespace:

System.IO.File

http://msdn.microsoft.com/en-us/library/system.io.file(v=VS.80).aspx

System.IO.Directory

http://msdn.microsoft.com/en-us/library/system.io.directory(v=VS.80).aspx

System.IO.FileInfo

http://msdn.microsoft.com/en-us/library/system.io.fileinfo(v=VS.80).aspx



My ingredients:
  • Microsoft Dynamics NAV 2009 R2
  • Windows 7 Enterprise
What you will find in the TXT file:
  • 2 Tables
    • T.50100 Client Files Management Buffer
    • T.50300 Client Files Management Setup
  • 1 Page
    • P.50200 Client Files Management


What to do to let it work (initial setup):

1. Populate the Client Files Management Setup table 50300 with the appropriate values :
  • User ID -> windows login (without domain)
  • Default From Path -> Initial path where to take the file from (NOTE: do not add the backslash at the end, the application will do this for you)
  • Default To Path -> Path where to copy/move files to (NOTE: do not add the backslash at the end, the application will do this for you)


2. Once you have completed setup as per point 1, now you are really ready to manage files using the RTC and simply run Page 50200 Client Files Management.

Action buttons Legend:



Move Back - Move Forward

These are enabled since the beginning and permit the user to browse up and down the Directories hierarchy.





OPEN File - DELETE File

Once you have selected your source file (From File), these buttons will be shown. They permit the user to Open (a simple HYPERLINK) or delete the file selected. If the To file is selected (the "Done" option in the To File is selected) these actions refer to the To File. (Obviously you can change this how you wish, since you have the code under your fingers).



COPY File - MOVE File

These are the clue actions. They are enabled once the user has selected both the source file (From File) and the destination file (To File) and checked the 2 "Done" Options for "Manage File" and "Into File" groups (as reported in the first screenshot).

These postings are provided "AS IS" with no warranties and confer no rights. You assume all risk for your use.

Best Regards,

Duilio Tacconi (dtacconi)

Microsoft Dynamics Italy

Microsoft Customer Service and Support (CSS) EMEA



Источник: http://feedproxy.google.com/~r/Micro...v-2009-r2.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 


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

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

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