Dear Experts,
I have created new code unit. while saving giving an error. Please advise
Thanks
With Regards
Mandeep Kaur
*This post is locked for comments
Dear Experts,
I have created new code unit. while saving giving an error. Please advise
Thanks
With Regards
Mandeep Kaur
*This post is locked for comments
[quote user="Binesh Singh Rajput"]
You know what, The main issue is, you are not reading carefully solutions, Just once read what members suggested you.
check my first solution's screenshot and as it is create.
[/quote]
Check the screenshot again Mandeep
Hi All,
Thanks for your support and help.
That error has been resolved. Now getting an error in Save Report function. Please advise.
Thanks
With Regards
Mandeep Kaur
Hello Mandeep Kaur,
You know what, The main issue is, you are not reading carefully solutions, Just once read what members suggested you.
check my first solution's screenshot and as it is create.
No need to add Userid in parameters.
its a default function available.
and reportid must be of type integer not record.
check Binesh's screenshot.
Hi Binesh,
As suggested, I have added ReportID and UserID into function parameter. But still getting error. please advise.
Compile Error
Variables
Thanks
With Regards
Mandeep Kaur
Hello Mandeep,
You declared ReportID and UserID variable as a Record variable, that are wrong.
Delete both variables, and ReportID pass as a parameter in AddReport function.
Save your codeunit then compile.
Now its working.
Hi Saurav,
I am trying this code in 2013r2 and the process is same which I am applying. Kindly advise please.
Thanks All
Mandeep Kaur
Yes, You are right Binesh, I have created record variables.
Please find below screenshot for same. Variables and code. Please advise.
Thanks
With Regards
Mandeep Kaur
Hi,
If i am not wrong you are trying to create a tool which will log report usage -
Two Things -
1. Error is because there is an integer variable which is not declared correctly.
2. If you looking for tool for NAV 2016 Refer here -
saurav-nav.blogspot.in/.../microsoft-dynamics-nav-2016-save-report.html
In the same article there is a link to download tool for previous version.
Hope it helps.
In your code when you used User ID it should be USERID without any space.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156