I want to know what's the database name when I've got Navision opened. I don't want to use the Information window because i need to read from an external program
Why? If you want to read this variable from an external application, you should already know the database and servername. You need those 2 names to connect to Navision.
Regards,
Willy
Fostering a homeless, abused child is the hardest yet most rewarding thing I have ever done.
Comments
you can use CONTEXTURL for this:
This is the help on it:
CONTEXTURL
Use this function to return a context string that defines the current position of the running objects.
String:=CONTEXTURL
String
Data type: text or code
Example
Here are two examples of a context string:
[url=navision://client/run?database=filename&company=companyname]navision://client/run?database=filename ... ompanyname[/url]
[url=navision://client/run?server=servername&company=companyname&servertype=MSSQL]navision://client/run?server=servername ... type=MSSQL[/url]
Regards,
Willy
You can use hidden System table 2000000010 -> "Database File" field "File Name"
For the Server Name use the How2 http://www.mibuso.com/howtoinfo.asp?FileID=2
Rvduuren
Thanks. I like contexturl. Do you know If I can read it form an external application??
Asier
Why? If you want to read this variable from an external application, you should already know the database and servername. You need those 2 names to connect to Navision.
Regards,
Willy