Hi
We often have customers with 2 dbs. One for testing purposes and the production db.
Is there an easy way for customers to distinguish between these 2 environments? The problems is, they are sometimes in the wrong db without noticing it. As far as I know, renaming the companies in test db is not an option with sql option.
I'm looking forward to some input for:
Version: 4.x
DB: Native and SQL
Many thanks
Thomas
0
Comments
For v4, would a MESSAGE prompt be sufficient?
As far as I knew, you could change the name of a company within NAV even in the SQL version.
Microsoft Dynamics NAV Developer
Message: Not too bad, but after clicking it away its gone. Someone has another idea (similar to another color of the menu, or maybe a status line...)
Renaming: Ok in SQL, but can be very slow.
Thanks
Thomas[/b]
On select forms, I also add to the DataCaptionExpr for the form to display the company, but it could also be used to display the database easily.
I place that form to run in the cu1, so no matter what database I work I can see where exactly I am.
Since I work in different servers and databases all the time (2-3 at the same time) it helps me alot...
Arhontis
https://forum.mibuso.com/search
RIS Plus, LLC
What I did:
I created a form with properties:
Autoposition: None
Insertallowed: No
ModifyAllowed: No
DeleteAllowed: No
Editable: No
Minimizable: No
Maximizable: No
Sizable: No
Borderstyle: None
Captionbar: None
Then a setup where you can decide:
- if the form should be shown at all
- the title: will be filled in in a textbox on the form
- the color of the form
in codeunit 1 OnCompanyOpen:
Show the form
On the form are the fields:
- Title (set up in the setup)
- Company
- License info (owner and type of license (e.g. developer license))
- current user
- current number of sessions (with drill down)
- database
The form is always shown on XPOS=0 and YPOS=0, and with the same width and height.
We include this in our default database, so this functionality is always available at new customers.
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
I think we will opt for the form which is started in cu1.
Regards
Thomas
Dynamics West
http://www.dynamicswest.com
Change MYSERVERNAME to your Production Server Name
Change MYDATABASENAME to your Production Database Name
The form runs invisibly in the background at all times.
It will pop up a warning message if you are not logging into your production server or your production database.
It will also provide a warning that prevents the accidental 'closure' of Navision (which drove many of our employees crazy).
The 'closure' message will also fire when changing companies within the same database.
In CU1 - CompanyOpen() use this code:
I should add that I've never tried this on a Native Database but I think it should work. I wrote it specifically for our SQL Server installation.
Hope this helps.
Headley27
In that way, users known at any time witch database they are performing.
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
One your original server, and another one, one anhy local machine, with the name as DUMMY. The company can be renames as DUMMY Company.
I frequently replace the dummy database with the original database, (and changing the company name)so that the testing people find more data and real data to work upon.
Deep
India