hi!
we try to run reports
and there functions ... but the report id is located during the runtime!
so it's not possible to use global/local variables ... and
report.run(...)
or
report.runmodal(...)
don't have the functionality to run functions within the report ...
has anybody an idea how to solve this problem?
greets, tafferKakao :roll:
Comments
not possible...
how many differrent reports do you expect to be run.
if <10 (<20...) you can make them all globals and use a large CASE statement...
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
then you can call your functions using CODEUNIT.RUN(123,rec);
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
why we want to do this? if this would be possible, we don't need to spent any attention to customer individual reports ...
everey report-id would be written in a table (together with a unique code) ... the form should now run a codeunit (instead of a report) ... the coudenit just needs a code and could run the report ...
on this way we only need to change the value of an integer-field in the new table instead of changing everey form that runs the original report
when i would write a coudeunit which runs the report-functions, we would need to spent this one codeunit nearly as much attention as we need to spent now for customer individual reports ...
i need a reportref (like the recordref) ... perhaps this will be available in navison 4
Did this problem even got solved?
I have the same problem now.
A.