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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 09.12.2010, 02:13   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
dynamicsaxtraining: How to access field in a table using this field id
Источник: http://www.dynamicsaxtraining.com/kn...-this-field-id
==============

To do this you could use next construction:

myTable.( filednum( myTable, myField ) ) = “XXX”;

This is the same as

myTable.myField = “XXX”;

Example:

Field AccountNum from CustTable have id 1. Then statement CustTable.(1) = “4000” – will initialize field AccountNum with value “4000”.

You could also use this feature while working with record of type Common.

Example:

Common common; CustTable custTable; ; select custTable where custTable.AccountNum == "4000"; common = custTable; info( common.( fieldnum( custTable, Name ) ) );The output of running this code will be the info log with a message “Light and Design”, Where “Light and Design” – name of the customer with id “4000″.



Источник: http://www.dynamicsaxtraining.com/kn...-this-field-id
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
dynamicsaxtraining: How to get original value for table fields during record modification Blog bot DAX Blogs 0 06.12.2010 23:11
dynamicsaxtraining: How dynamically change data source field properties Blog bot DAX Blogs 0 06.12.2010 23:11
dynamicsaxtraining: How to make data from temporary table available in form’s grid Blog bot DAX Blogs 0 04.12.2010 01:11
DynamicsAxSCM: The InventTrans table. Explore various field usages. Blog bot DAX Blogs 0 09.11.2010 19:10
CRM DE LA CREME! Some more useful javascripts for MS CRM Blog bot Dynamics CRM: Blogs 0 04.05.2010 11:05

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 12:43.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.