NAV 365 BC On premise
rnjbng
Member Posts: 82
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.
Is there any way without touching the base NAV code I can accomplish this using events.
Any help is highly appreciated.
Thanks
RJ.
0
Best Answers
-
Hi RJ,
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
5 -
.5
Answers
-
Hi RJ,
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
5 -
Many..Many Thanks JP, your solution indeed does work. Thanks again for all your help.1
-
You r welcome
add me on Skype joao.bagdonas
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.
JP0 -
Omg I have just erased my reply again!!!
The message was showing twice for me
0 -
.5
-
.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 323 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions