Hiding label in a report
allende
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..
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..
0
Comments
-
Hello!
You can change SourceExpr of the component. And then, restore it again.0 -
Label ???0
-
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!0 -
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 runtimeRegards,
GD0 -
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.0
-
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
0 -
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.
Marcelo Borges
D365 Business Central Solutions Architect
BC AL/NAV C/AL Developer
BC Repositories.com0 -
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.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
