how to check whether the report is run or not

hi,

in a button we have to write a condition in such a way that…

only if a particular report has been run the remaining code in the button should be executed…

please suggest on how to check whether that report has been run or not…

I don’t understand what you mean. The way that I understand this is that the code to run this report and the ‘remaining code’ is all part of the code for this one button. If you program the button to run the report, you know that it ran, so the remaining code always runs when that report runs.

Unfortunately, there is no way to tell in standard NAV if a certain report runs or not. There is no logging mechanism or a return value.