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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 20.08.2018, 20:13   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
d365technext: Edit Method D365FO
Источник: http://d365technext.blogspot.com/201...od-d365fo.html
==============





Edit Method D365FO





In AX 2009, when reference control was not available, in table if there is a relation created on the basis of any field i.e. there is a child table and it contains the record Id of the parent Table. When that child table binds to form, (to display and select the user friendly information from the parent table, lookup controls were used). The record Id of the user friendly value is saved on the table with the help of the edit methods.

Here is the example to use Edit Method.


editint ageUpdate(boolean _set, int value)
{
SLD_DemoTable _demoTable;
int ret;


// find the car records from the car table with update = true
_demoTable = SLD_DemoTable::find(this.Name, _set);


if (_set)
{
ttsbegin;


_demoTable.Age = value;
_demoTable.update();


ttscommit;
}
else
{
ret = _demoTable.Age;
}


return ret;
}



Источник: http://d365technext.blogspot.com/201...od-d365fo.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
Старый 23.08.2018, 07:58   #2  
TasmanianDevil is offline
TasmanianDevil
Мрачный тип
Аватар для TasmanianDevil
Злыдни
 
885 / 389 (14) ++++++
Регистрация: 24.01.2005
Адрес: Томск
Шлак какой-то ...
Не пойми где, не пойми что и не пойми зачем обновляется, еще и в транзакции.
__________________
Мы летаем, кружимся, нагоняем ужасы ...
За это сообщение автора поблагодарили: Pandasama (1).
Старый 23.08.2018, 09:21   #3  
Stitch_MS is offline
Stitch_MS
Участник
Аватар для Stitch_MS
Соотечественники
 
396 / 478 (16) +++++++
Регистрация: 27.02.2006
Адрес: Дания
Не взирая на критику, автор продолжает клепать по посту в день.
Старый 24.08.2018, 05:50   #4  
skuull is offline
skuull
Участник
Most Valuable Professional
Лучший по профессии 2014
 
699 / 752 (27) +++++++
Регистрация: 08.03.2013
Адрес: ХЗ
Кто его вообще добавил ?
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
d365technext: Environment hot fixes D365FO Blog bot DAX Blogs 0 16.08.2018 14:11
d365technext: SSRS Report with custom fonts in D365FO Blog bot DAX Blogs 0 15.08.2018 17:15
d365technext: FormHasMethod extension in D365FO Blog bot DAX Blogs 0 03.08.2018 18:11
Navigate Into Success: Try..Catch for .NET Interoperability Blog bot Dynamics CRM: Blogs 0 29.10.2014 09:00
emeadaxsupport: Dynamics Ax 2012: How to implement an edit method and use it within Enterprise Portal Blog bot DAX Blogs 0 13.11.2013 22:11
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

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

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

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