Quantcast
Channel: NAV/Navision Classic Client — mibuso.com
Viewing all articles
Browse latest Browse all 2239

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

$
0
0
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!

Viewing all articles
Browse latest Browse all 2239

Trending Articles