Tab control VISIBLE properties - help

abartonicek
Member Posts: 162
Is it posible to hide ONLY ONE tab in tab control?
Better to be critical then self-critical 

0
Comments
-
Hi,
Try making all the controls in that tab NOT VISIBLE and I think that the tab itself will disappear (according to the Application Developers Guide).0 -
I end up with blank tab :-k
Maybe I'm doing something wrong?Better to be critical then self-critical0 -
Arhontis wrote:Try making all the controls in that tab NOT VISIBLE and I think that the tab itself will disappear (according to the Application Developers Guide).
The tab only disappears if you make the property "PageNames" of the tab blank for that page.
Eg. PageNames=Page1,Page2,Page3,,Page5 => the fourth page you wil not see.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
So, in other words, I can't hide only one tab. What I wanted was to show the last tab in tab control only when some conditions were met.
Removing tab from PageNames property doesn't cut itBetter to be critical then self-critical0 -
I am not sure (never tried it out), but you can create 2 tabcontrols, and hide 1 of those 2 depending on the condition.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
I know.
I have 4 tabs a they have about 30 controls. I wanted to add another control with some specific (rarely used) controls. Depending on one control I would show that last tab.
Creating another Tab control (with 4 + 1 new tab) would duplicate the côde that I allready have for the existing controls. Right?Better to be critical then self-critical0 -
Sorry, correction:
...I wanted to add another TAB...Better to be critical then self-critical0 -
Maybe if you give the controls on the 2 tabs the same name, it is possible that you don't have to do it. But I wouldn't trust it anyway.
Also, maintaining the form later gets a lot more complicated.
The best thing you can do is just hide the controls you don't need. If there is a blank tab, ... well so be it.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
I did that, but I hoped...
Thx for help.
I have one (only one?) more question:
When relating one table to another, if you want to delete something in one table a automatically delete the same thing in the other you have to put that in côde, right?Better to be critical then self-critical0 -
Yep, in the OnDelete function of the parent table...0
-
Tnx.Better to be critical then self-critical0
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