20.08.2018, 20:13 | #1 |
Участник
|
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 |
Мрачный тип
|
Шлак какой-то ...
Не пойми где, не пойми что и не пойми зачем обновляется, еще и в транзакции.
__________________
Мы летаем, кружимся, нагоняем ужасы ... |
|
|
За это сообщение автора поблагодарили: Pandasama (1). |
23.08.2018, 09:21 | #3 |
Участник
|
Не взирая на критику, автор продолжает клепать по посту в день.
|
|
24.08.2018, 05:50 | #4 |
Участник
|
Кто его вообще добавил ?
|
|
|
|