Strange filter behaviour on Table Database

tfranzen
Member Posts: 25
Hi,
I experience a strange behaviour of NAV 4.0 SP3 when using a filter on the virtual table Database.
What I want:
I want to give a message to the user when working in a test-database (The name of the database contains the word TEST in any form)
What I did:
In codeunit 1/LoginStart I declared a local record-variable with subtype Database (2000000048), put a filter on field "My Database" and made a FINDFIRST. I received the correct record and trigger the message. So far so good.
But now there comes the problem: when a "normal" user wants to switch the database and opens the OpenDatabase-Dialogue and makes a lookup to the existing databases only the one he has in access is shown and selectable, any other database is not.
Any ideas of solving this problem with this record are appreciated. In the meantime I use CONTEXTURL to get the database name.
Thanks
Thomas
I experience a strange behaviour of NAV 4.0 SP3 when using a filter on the virtual table Database.
What I want:
I want to give a message to the user when working in a test-database (The name of the database contains the word TEST in any form)
What I did:
In codeunit 1/LoginStart I declared a local record-variable with subtype Database (2000000048), put a filter on field "My Database" and made a FINDFIRST. I received the correct record and trigger the message. So far so good.
But now there comes the problem: when a "normal" user wants to switch the database and opens the OpenDatabase-Dialogue and makes a lookup to the existing databases only the one he has in access is shown and selectable, any other database is not.
Any ideas of solving this problem with this record are appreciated. In the meantime I use CONTEXTURL to get the database name.
Thanks
Thomas
0
Comments
-
Have a look at the Session table. Filter on My Session = Yes. There is a field for the database name.
I would, however, probably go with a different solution. Once that message is gone it is easy for the user to forget that they are in a test database. Constant visual aides, like a red background or big text that says TEST tend to help the user remember more.0 -
Constant visual aides, like a red background or big text that says TEST tend to help the user remember more.
How do you do that? Do you edit all forms on the db to add a TextBox with the message?
Salut!Laura Nicolàs
Author of the book Implementing Dynamics NAV 2013
Cursos Dynamics NAV (spanish) : http://clipdynamics.com/ - A new lesson released every day.0 -
I've found that adding the word 'TEST' to all of the menus is an effective way to do this. It takes just a couple of minutes to do it, with no development or testing0
-
This change affects all companies in the database?
Can you change the menu name for just one company? Is yes how?
Salut!Laura Nicolàs
Author of the book Implementing Dynamics NAV 2013
Cursos Dynamics NAV (spanish) : http://clipdynamics.com/ - A new lesson released every day.0 -
It affects the whole database, all companies. As far as I know there is no way to dynamically add the company name to the menus like that.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