OnBeforeAction Event Page 42, Release button

andtry10
Member Posts: 1
Hi, Using the OnBeforeActionEvent on page 42 on the Release button.
The Event code is only triggered on the Tab: Actions, not on the Tab: Home.
I have made a function subscribing to this event and it trigger the code fine as long as I push the Release button from the Actions Tab, but it does not trigger from the Home Tab.
The button is the same, only that on the property it has Promoted = Yes
Does anyone know why ?
The Event code is only triggered on the Tab: Actions, not on the Tab: Home.
I have made a function subscribing to this event and it trigger the code fine as long as I push the Release button from the Actions Tab, but it does not trigger from the Home Tab.
The button is the same, only that on the property it has Promoted = Yes
Does anyone know why ?
0
Answers
-
I didn't try this. if you are sure about it then please check latest CU's if it is fixed or not. otherwise you can create a support case to MS to fix it.0
-
If you subscribe to the OnBeforeReleaseSalesDoc event in codeunit 414, it doesn't matter from where you click Release1
-
I think you should subscribe to " OnBeforeReleaseSalesDoc " in codeunit 414 as @DenSter specified.
Its not a good idea to use OnBeforeAction Event for this purpose.Best Regards
Zohaib Ahmed
Dynamics NAV ERP Technical Consultant.
please like / agree / verify my answer, if it was helpful for you. thanks.0 -
Problem is that page 42 calls the function PerformManualRelease in cu414. The events are placed in the Code function after PerformManualRelease has been executed, so the only chance to catch something before anything happens in cu414is to subscribe to OnBeforeAction of the release action.
You need to be on build 46773 or later of NAV2016. In earlier builds the OnBeforeAction doesn't work on the home tab.
I would really like generic OnBefore/OnAfter of ALL functions passing the parameters of the function as VAR:s. Maybe even buil't in handling of the Handled pattern. Wouldn't that be nice :-)Lars Westman
http://www.linkedin.com/in/larswestman0 -
yes that sure would be nice, wouldn't it
A MASSIVE amount of refactoring would have to happen in order for that to work though
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
- 320 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