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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 02.09.2010, 12:53   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Регистрация: 28.10.2006
I have collected few tips maybe could be used in NAV 2009 developing.
Don't claim me too much if this looks to easy...
[list=1][*]Files managing on RTC pc.
In C/AL we have statements for working with files like: EXISTS(<File_Name>); RENAME([list=1],<New_File_Name>); ERASE(<File_Name>); COPY(<From_File_Name>,<To_File_Name> ) . But this is working only on CC, as on RTC these statements are executed on Service Tier. What to do if we want to managing files on RTC PC?
I propose to use automation: 'Windows Script Host Object Model'.FileSystemObject. If we create it using "Client side" parameter, then automation will be loaded on RTC and we can use all functions from it.
For example functions:
Function in NAV C/ALFunction in automationEXISTS(<File_Name>);<automationName>.FileExists(<File_Name>);RENAME([list=1],<New_File_Name>);<automationName>.MoveFile(
  1. ,<New_File_Name>);ERASE(<File_Name>);<automationName>.DeleteFile(File_Name>[, BOOL Force]);COPY(<From_File_Name>,<To_File_Name> ) <automationName>.CopyFile(<From_File_Name>,<To_File_Name>);
  2. Different view of boolean fields in RTC.
    Usually boolean fields are showed as checkmarks in RTC, but we can make it in different view - show "Yes/No". This could be done by just adding comments to filed trigger "OnDrillDown".
    Here is example what we see in RTC: 1st boolean has comments in trigger as 2nd is typical view.
  3. Usage virtual table 2000000022 "File" in RTC.
    If you are using this virtual table somewhere in CC and now want to transfer functionality to RTC, you need to know few points:
    1. Virtual table will show files/olders on service tier (not on RTC) and this is different from CC where you saw info from user pc.
    2. If you are using table "File" in RTC, then don't use field "Data". In CC it shows "*" if there are data in file, however RTC starts reading all data from file and loads memory/processor.
Thank you



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


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

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

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