Programmatically Make Textbox Non-Visible

tooo
Member Posts: 138
I'm wondering if you can make a textbox non-visible through code, i see there is a visible property but i'm unsure how to implement it in code!?
0
Comments
-
Yeah it is possible.
Go to Text Box Properties and give a name:xyz
Then Code as:
Currform.xyz.Visible:=True/False
Simple:)0 -
Does CurrForm exist in NAV 4.1 as it's staying that i have to declare it as a variable??0
-
Sure it does, open a form in design mode and Press F5, you will see the CurrForm.
I guess you are trying to do this inside a Report?
If so then you cannot use this CurrForm.
Then you just copy the existing section where you want to Textbox to disapper, remove the texbox from it
Click the Header of the section, press F9
And add following code: CurrReport.SHOWOUTPUT(gv_Visible);
When the gv_Visible is TRUE it will print the section, else it will skip the section.
Add same code to the existing section (the one with the textbox)0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions