Henk Kwant
13th May 2019, 10:55
I some reports I use the following:
pdetail = 2
r.2.s.detail()
pdetail = 0
In a new report on another Baan server I want to use this command also but there I get error "Unresolved reference to r.2.s.detail()".
I believe that in the past the current command was a little bit different but I can't remeber what that was.
Can anyone help me on this matter?
Thanks in advance.
mark_h
13th May 2019, 14:23
What first jumped into my mind was debug the report and make sure the routine is still present with that name.
Henk Kwant
13th May 2019, 16:54
I get the error message after compiling the report so I cannot debug anything (or do not know how to).
mark_h
14th May 2019, 14:41
Sorry - should have said comment out the r.2.s.detail() line. Compile in debug - make sure that routine is still preset in the compiled report. If not I am assuming you have a system where this report works - compile that one in debug mode. And run both reports comparing the code. My swag and I could be wrong is the layout numbers or something must have changed between servers.
günther
15th May 2019, 08:57
Hi,
I just had a look at one of my reports. I see a function r.s.detail, which then calls r.s.detail.1 (maybe other number, maybe more Detail lines) according to the defined layouts. But I'm not sure if i've ever seen r.2.s.detail.
Maybe you could use a standard method like: cope layout 1 to layout 2 and use print conditions?
Or you could try my solution described here:
http://www.baanboard.com/baanboard/showthread.php?t=9090&highlight=Advanced+Report (http://www.baanboard.com/baanboard/showthread.php?t=9090&highlight=Advanced+Report)
Regards
Günther
Henk Kwant
15th May 2019, 09:36
Hello Gunther,
That's it. The report compiles now whitout errors.
Thanks for your help.
Kind regards,
Henk