CurrReport.SHOWOUTPUT on Report Header

Big_DBig_D Member Posts: 207
edited 2013-02-21 in NAV Three Tier
Hi Mubuso.com World

Checking the various replies for replacing the CurrReport.SHOWOUTPUT on RDLC (NAV 2013) and they seem to answer the queries good for the RDLC body of the report but what about the Header of the Report. Am using the GetData/SetData option to check an Option and depending on the Option I want to print one header title or another title.

C/Side Report: CurrReport.SHOWOUTPUT (Test = 1);

RDLC Report:

Body

=IIF (Fields!Test_Option.Value = 1, Cstr(Fields!Addresses1_ListCaption.Value) + Chr(177), Cstr(Fields!Addresses2_ListCaption.Value) + Chr(177))

Header

2 fields for to get and setdata.

Above code compiles okay but when it executes this part of the header bit is missing on the report. Can somebody point me at the error of my ways or indicate a standard Cronus Report where this functionality is used please?

With thanks
Big D signing off!

Comments

  • ppavukppavuk Member Posts: 334
    I did something similar to display different images depending on dataset field. So, i made 2 controls with visibility triggered by another textbox value. Of course, first of all i retrieved the dataset field using getdata to hidden textbox in header, and then used this control to trigger visibility of my image controls.
    The trick is that this textbox should be on very top of report header.
  • Big_DBig_D Member Posts: 207
    Hi ppavuk

    Thanks for the reply and excellent tip :D !
    Big D signing off!
  • ppavukppavuk Member Posts: 334
    Please mark this as solved ;)
  • Big_DBig_D Member Posts: 207
    As the man says - this is solved - thanks ppavuk :)!

    Until next time
    Big D signing off!
Sign In or Register to comment.