On a Sales order when you change the location code you get a dialog box saying changing location code will change location code on the sales order line, Do you want to continue?. I can go to the Sales header table-->Location code field-->Onvalidate rem the code to get away with this message but I don't want to touch base NAV code.
Is there any way without touching the base NAV code I can accomplish this using events.
Any help is highly appreciated.
Thanks
RJ.
0
Answers
I heard that you can ask for Microsoft to add events for you (OnBefore/OnAfter). I have not done it myself yet. Please follow the instructions on the link below and let me know if it worked for you.
https://twitter.com/skkulla/status/1159995789336125440?s=08
Quickly thinking about your question I had few ideas...
1 - Create a new field "Location Code 2" and apply your onw validation on it using Modify(false)
2 - Create a page extension for the sales order and a new action using the STRMENU for the user to change the Location Code
3 - Use Codeunit 1 (now Cod_49) to intercept the value that you want via recref and prevent the validation
Let me know what you think about my reply, hope it helps you get your solution
Cheers,
JP
I don't like AL bcoz of this limitations.
You need to use a new way of thinking to work around the code limitations. Now developers must know the system well to have good ideas. And I am worried about performance and keys as well.
JP
The message was showing twice for me