NAV Client and Service Tier Crash using Events - system.reflection.ambiguousmatchexception

chrisdf
Member Posts: 82
Hi,
I wanted to use an event from a page e.g. OnOpenPage
Of course, there is a standard one built into NAV but it only returns the “Rec” variable and I wanted to set some global variable in the base code which I can’t pass as a parameter with the in-built published event (it would be useful if you could get sight of the publishers global variables here but you can’t as far as I can see?)
So I thought I would be “clever” and publish my own event from the OnOpenPage trigger section with the parameter I wanted i.e an additional publisher to the in-built publisher from the same section.
NAV definitely “does not like this” and crashes the client and the service tier – although the compiler accepts it.
The windows event log gives a clue … talks about events and "Ambiguous match found"
So basically - don't try this at home!
I wanted to use an event from a page e.g. OnOpenPage
Of course, there is a standard one built into NAV but it only returns the “Rec” variable and I wanted to set some global variable in the base code which I can’t pass as a parameter with the in-built published event (it would be useful if you could get sight of the publishers global variables here but you can’t as far as I can see?)
So I thought I would be “clever” and publish my own event from the OnOpenPage trigger section with the parameter I wanted i.e an additional publisher to the in-built publisher from the same section.
NAV definitely “does not like this” and crashes the client and the service tier – although the compiler accepts it.
The windows event log gives a clue … talks about events and "Ambiguous match found"
So basically - don't try this at home!
0
Comments
-
Hi,
Did you create a second [OnOpenPage] event (with that name)? That would rightfully crash it.
If you still need a 'setup' how to do this let us know.\\The truth exists in seven versions.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