From Navision 3.xx it is possible to use a kind of protocol for starting / calling a Navision Client.
The syntax for starting a Navision Client is:
navision://client/run
A call like this, in a browser, would start or activate a Navision Client. This call thou would prompt the user for login, password etc. So to simplify the user interaction, it is also possible to pass on some parameters.
Possible parameters are:
company The company that should be open when starting the Navision Client database Database Name servername Server Name for the server you wants to connect to servertype Is it a native or mssql server? target Which object has to be activated. Ex. a Form18 – the syntax is [objecttype][objectno] view View (Filters) for the object, that will be activated with the target property
A complete url call could look like this:
navision://client/run?servername=myserver&
……………………… database=mydb&
……………………… company=mycompany&
……………………… servertype=mssql&
……………………… target=Form18&
……………………… view=SORTING(No.) WHERE (No.=FILTER(132))
Remember when using a Navision protocol, it would be an advantage using windows authentification (windows login) for Navision – else your users would be prompted for username/password. Alternative you have to make sure, that a client already is running, before using the protocol.
Is it possible to call the navision protocol from DOS. I tried it and I am not getting it to work.
Yes and No – it depends on how you want to use it.
If you expect just to write: c:>navision:://client/run in the DOS prompt it would not work.
But (and here comes the yes part) – it is possible with a little trick. Simply add the call to explorer, so that you would write
……. explorer “navision:://client/run…” in the DOS prompt.
If you specify a view – then remember to use quotation (
"
) around the Navision protocol or else DOS will interpret it as several DOS command statements.Great post! I’ll subscribe right now wth my feedreader software!
Thanks very much for the info, I can finally say I’ve read something worthwhile.