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

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


In C/AL we address fields and methods of record variables using the syntax <Record>.<Field> and <Record>.<Method>. To make coding somewhat simpler and the resulting code leaner, with the goal of being easier to read, C/SIDE - uhh NAV DE now we're on NAV 2013 - has a couple of ways to make implicit references to the record variable.
  1. using the WITH statement; as the C/SIDE Reference Guide puts it:
    If you work continuously with the same record, you can use WITH statements. When you use a WITH statement, you only have to specify the record name once.

  2. using the Rec variable on any table, bounded page (and form) or codeunit OnRun trigger having the TableNo property set
  3. using the DataItem variable of the associated DataItem on any report (or dataport)
  4. using a field as parameter in a record method call, examples being:
    <Record>.SETFILTER(<Field>,...)
    <Record>.
    SETRANGE(<Field>,...)
    <Record>.
    SETCURRENTKEY(<Field>,...)

As part of the code cleanup between NAV 2013 Beta and RTM, explicit references to record variables, where they could be implicit, have been removed.

The accompanying screen shots show examples of case 1 and 4.





Читать дальше
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 


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

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

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