|
27.04.2009, 12:58 | #1 |
Участник
|
AX 4 Automatic filling field
Hi All,
While creating new record, or during saving new record, I want system filled the field ToDate in the previous record automatically. ie record 1: Descr.| FromDate | ToDate test1 | 10/10/2008 | record 2: test2 | 15/10/2008 | save -> system should filled ToDate in previous record now. Final result should be: Descr.| FromDate | ToDate test1 | 10/10/2008 | 14/10/2008 test2 | 15/10/2008 | Does something like this exist in AX? Could you give me table name or help how to do this? Thank you in advance Hugon ______________________ AX Developer .::. Beginner Последний раз редактировалось Hugon; 27.04.2009 в 13:05. |
|
27.04.2009, 13:13 | #2 |
----------------
|
X++: void insert() { YourTable yourTable; ; super(); update_recordset yourTable setting ToDate = this.FromDate - 1 where yourTable.FromDate < this.FromDate && ! yourTable.ToDate; } Последний раз редактировалось Wamr; 27.04.2009 в 13:16. |
|
|
За это сообщение автора поблагодарили: Hugon (1). |
27.04.2009, 18:46 | #3 |
Участник
|
Thanks a lot.
__________________
Hugon AX Developer .::. Beginner |
|
Теги |
ax4.0 |
|
|