Hello all, here's my problem. Let's say I have a sales order with 1 line with an item (line 10000) on it and 3 lines of extended description for that item on lines 20000, 30000 and 40000. The user is on line 30000 when he hits F3. Currently this will insert a line between 30000 and 40000, splitting up the extended text that was already on the form. So I want to not allow an insert if the Attached to Line No. field on the line the user is on has a non-zero value. I've tried generating an error in the OnNewRecord trigger but that closes out the entire form. Thanks for the help!
0
Answers
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Perhaps some code guru's can clean this up - if it even works at all..
I would guess you need it on a "Line no." trigger.
http://www.BiloBeauty.com
http://www.autismspeaks.org
It displays the message then returns to the line F3 was pressed on.
I will preffer to add code into OnInsert trigger of the table which will call error instead message... ;-)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.