Classic Report Issue on RTC

mgiffordmgifford Member Posts: 44
edited 2009-10-28 in NAV Three Tier
I have a situation where I am trying to print a group of invoices (which could be just a few or 100's) all at once so the user can easily export them to a single file. I have a code unit that loops through and MARK's the Sales Invoice Header records then turns on the MARKEDONLY flag and passes that record to the invoice report 10074 via a SetTableView. My expectation was that this would only print the invoices that were marked in the record. I have also tried creating a temp record and filling that with the approriate records then passing it to the report. In either case, it tries to print the entire list of invoices as though the record passed in has no effect.

This is happening from the RTC and the report is a classic report (ie no Layout is defined).

Am I going about this incorrectly?

Comments

  • mgiffordmgifford Member Posts: 44
    BTW, the same exact code will run properly from classic client. We are trying to avoid having to recreate the invoice layouts in both classic and RTC.
  • douglasddouglasd Member Posts: 6
    Hi

    One of my colleagues had exactly the same problem, in the end we abandoned the RTC report writer and used the classic report writter within the RTC. :(
  • The RTC and the classic report writer runs in different processes on the client machine. This means that they dont share MARK'ed records and is why your code does not work. The same is the case if you 1) declare a report variable "R", 2) call a function on the variable "R.SET(1,2,3);" to set set global variables on the report 3) run the report "R.RUN();". This works on classic - but will break if you do it to call a classice report from the RTC

    The classic report fallback was put in place to enable use of legacy classic reports, since we know that conversion can be hard for some classes of reports - but it is not perfect

    Michael
    This posting is provided "AS IS" with no warranties, and confers no rights.
Sign In or Register to comment.