Options

Hiding label in a report

allendeallende Member Posts: 51
Hi all,

I would like to hide a Label or Text Box in a report related to a condition.

Ex.

IF "Inv. Discount Amount" = 0 THEN
--Hide some Labels --Visible FALSE ????

thnks..

Comments

  • foolosofofoolosofo Member Posts: 73
    Hello!

    You can change SourceExpr of the component. And then, restore it again.
  • allendeallende Member Posts: 51
    Label ???
  • foolosofofoolosofo Member Posts: 73
    Hi again.

    You can look at this post. It's about your qüestion.

    http://www.mibuso.com/forum/viewtopic.php?t=424

    See you!
  • gulamdastagirgulamdastagir Member Posts: 411
    You can use CurrReport.SHOWOUTPUT(False); to hide the Section with the Label or textbox depending on the CONDITION.

    Controls on the RequestOptionForm can be directly manipulated at runtime
    Regards,

    GD
  • MbadMbad Member Posts: 344
    Unlike forms there are no dynamic option in reports. You will need to make 2 section and hide one if you are using a label. If you are using a tablebox you can link it to a variable and change that. It depends whether your data is in the headersection or the bodysection.
  • mukesvemukesve Member Posts: 28
    Hi

    If you want to show/hide the Level / Text box dynamically, you need to put them on a seperate section. For eg. you want to show/hide a Text box on Header section, Just create a new header section below the current Header and put the control on that. Write the code in OnPreSection of newly created section -

    CurrReport.Showoutput(ShowCondition)


    Best of Luck
    Mukesh Verma :D
  • markborgesmarkborges Member Posts: 170
    Use a textbox as a label, and set the SourceExpr variable to an empty value.

    I think this is much easier than creating another Section to set the SHOWOUTPUT function accordling to your condition.

    :wink:
    Marcelo Borges
    D365 Business Central Solutions Architect
    BC AL/NAV C/AL Developer
    BC Repositories.com
  • OnewayOneway Member Posts: 53
    What i would do is create a function to controller the the condition of showing or not of a textbox. then only thing we need to do is set that textbox sourceexp as the function.
Sign In or Register to comment.