How can I get the database and company name?...
Steeve_globetrotter
Member Posts: 46
Hi everybody,
In fact I have a little problem cos' I don't know how I can get the database name and the current company name...I found in some post the "Session" table...Where is this table? Which ID is it?.... 8-[
I want to display this in a form only.
Thanks a lot for your help...
Steeve Le Provost
http://www.steeve-leprovost.fr.cx
In fact I have a little problem cos' I don't know how I can get the database name and the current company name...I found in some post the "Session" table...Where is this table? Which ID is it?.... 8-[
I want to display this in a form only.
Thanks a lot for your help...
Steeve Le Provost
http://www.steeve-leprovost.fr.cx
Steeve Le Provost
http://www.steeve-leprovost.fr.cx
http://www.steeve-leprovost.fr.cx
0
Answers
-
Hi,
If you access the CAL symbol menu (F5), you can choose DATABASE in the left panel, and then you'll get access to different functions that will retrieve information about the current database.
COMPANYNAME will give you the name of the current company. I'm not sure which function will give you the name of the current database, but you can always test the different functions by adding them to a MESSAGE function:
MESSAGE('Company name is %1',COMPANYNAME) // Will give you company name.
Hope this helps!
Cheers!0 -
Hi Nagi,
Thanks for your help...It's correct for the COMPANYNAME...I didn't see that...The first step is finished... :P
But know I need the database name and I can't finf information about this on the forum... #-o
Anyone for this ? lol :?:
Thanks again
Cheers
Steeve Le Provost
http://www.steeve-leprovost.fr.cxSteeve Le Provost
http://www.steeve-leprovost.fr.cx0 -
Databasename can be fetched from
In SQL
system-table 2000000048 Database
set a filter on the field 'My Database' = TRUE
In Native
system-table 2000000010 Database File
or 2000000009 Session
set a filter on the field 'My Session' = TRUE
These tables can only be accessed through variables in other objects (not shown in object designer)Regards
Dan Lindström
NCSD Navision 2.00 since 1999 (Navision Certified Solution Developer)
MBSP Developer for Microsoft Dynamics NAV 20090 -
Hiiii
Thanks a lot, it works perfectly like this... \:D/
Have a good day !
Steeve Le Provost
http://www.steeve-leprovost.fr.cxSteeve Le Provost
http://www.steeve-leprovost.fr.cx0
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
- 323 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
