Hide a label from a form
DarkHorse
Member Posts: 389
Hello, I'd like to know how can I hide a label from a form filtered by user.
Thanks in advance.
Thanks in advance.
0
Comments
-
CurrForm.LabelName.VISIBLE(FALSE);
0 -
Thanks for reply, but for example, if I put in OnOpenForm:
IF USERID = 'USER' THEN
CurrForm.'Foreign Trade'.VISIBLE(FALSE);
It says to me that doesn't exist "Foreign Trade" variable ("Foreign Trade" it's the name's label). What's the problem, please?.
Thanks for help0 -
Let's start with the bigger problem in that you are hard coding user ids. REALLY bad programming. Search the forum for something like "Hide fields for specific users".
As for the VISIBLE property, did you actually give a name to your label box? By default it will be something like <Control30>, not the variable / value it holds.0 -
Thanks, well, the only way where I can find a name form the laben is on properties on "PageNames", on appears the name of the label.
If I want to hide the 'Foreign Trade' label, from Item form, how's the code?
Thanks.0 -
"Foreign Trade" is not a label, but a PageName (or tab). And this cannot be made hidden at run-time.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
Ups!, well, in that case there's not much to do.
Thanks everybody for help.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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 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

