
Hey guys,
I have created an action, in that action I am calling a page like that: Page.RunModal = Action::LookupOK
In the nex line I am doing a Findset ans some assignments.
Now I would like to call a report after the assignments like this: Report.Run(Report::"Test",True,True,TestRecord)
Unfortunately I get an error message, when I run my code...
If I call the report like this: Report.Run(Report::"Test",False, False,TestRecord), but I need to call the report in this way: Report.Run(Report::"Test",True,True,TestRecord), because I need to give in some values, that is why I have to use "True".
Do you kow how to solve this issue? The error message says, that I have to use a commit...but where?
Thank you ;)
I would avoid this programming as munch as possible. This is what is reported for PAGE.RUMODAL
https://docs.microsoft.com/en-us/dynamics-nav/page-runmodal-function
When a page is run modally, no input, such as a keyboard or mouse click, can occur except for objects on the modal page.
If your code is specifying another input or modal form (page) then you will receive an error. In this case, you are trying to run another modal form (reqwindow).
I would definitively change the design and avoid using page.runmodal.