How to choose to dispaly or not a field in a report?

hazemhazem Member Posts: 187
Hello everybody
Is there a function that make it possible to choose if a field will be displayed or not in a report?

Comments

  • SavatageSavatage Member Posts: 7,142
    Who does the choosing?

    Do you want it based on some conditions?
    (ie/ If USER='XYZ' Then Visible Else......)

    Or are they fields you just don't need?
  • kinekine Member Posts: 12,562
    1) There is no way how to set visibility in runtime...
    2) You can clear the field and disable printing zero on the control...
    3) You can use more sections and show the correct section with correct fields...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • hazemhazem Member Posts: 187
    What i want in my report is that:

    " If <Condition> then Field visible
    Else Field invisible"

    How to do this please?
  • HalMdyHalMdy Member Posts: 429
    Use two different sections, one with the field to display and one without the field.

    Then, in the OnPreSection Trigger of each section, use :

    CurrReport.SHOWOUTPUT(YourCondition); for the one with the field

    CurrReport.SHOWOUTPUT(NOT YourCondition); for the other


    Hope that's help ...
Sign In or Register to comment.