Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all articles
Browse latest Browse all 10032

ReadPermission in combination with RecRef

$
0
0
Hi

If have a strange issue with ReadPermission, NAV 2013R2.

This works
RecRef.OPEN(TableID);
If RecRef.READPERMISSION THEN…

This does not work (RunTimeError on first line of code, "Access is denied to Company <TheCompanyName>")
RecRef.OPEN(TableID,False,TheCompanyName);
If RecRef.READPERMISSION THEN…

So my problem is, code does not reach the line to test with ReadPermission, because the OPEN command fails.

Thanks in advance.
Thomas

Viewing all articles
Browse latest Browse all 10032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>