NAV 2009 R2 NST management within NAV
This is "remake" of my NST Management, this time directly in NAV 2009 R2 environment!
You can manage your NSTs directly from the client (if you have the permissions).
You can start and stop the services, create new NST or delete them and you can edit their config files. All done in clear DotNet in NAV. Thus you need to use the NAV 2009 R2, which supports the DotNet interoperability.
When creating the new NST, you are selecting the "template" folder, from which will be the target folder created. In this way, you can have different versions of "templates" and create different versions of NST with same tool.
Objects are placed into range 50000, starting point is the Page 50000.
http://www.mibuso.com/dlinfo.asp?FileID=1337
Discuss this download here.
Comments
However; I found a few tiny problems.
Please rename the Array variable in Cod50000 (CopyFolder) - it is a reserved word and prevents import of the txt file. (Actually surprised that is doesn't complain about the Dialog variable. I thought that was why it is normally called Window)
Please add the "PC Name" in the Start and Stop and Refresh functions. Otherwise it tries to start/stop the services on localhost. (just add the "PC Name" parameter)
The ENU caption of the Status field is "Stav", while the CSY caption is "Status" - guess it should be the opposite? 8)
Peter
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
This is "remake" of my NST Management, this time directly in NAV 2009 R2 environment!
You can manage your NSTs directly from the client (if you have the permissions).
You can start and stop the services, create new NST or delete them and you can edit their config files. All done in clear DotNet in NAV. Thus you need to use the NAV 2009 R2, which supports the DotNet interoperability.
When creating the new NST, you are selecting the "template" folder, from which will be the target folder created. In this way, you can have different versions of "templates" and create different versions of NST with same tool.
Objects are placed into range 50000, starting point is the Page 50000.
Version 6.02.00
- some missing/wrong captions
- start/stop/refresh works with the remote servers
- some variables renamed
Version 6.01.00
- initial version
http://www.mibuso.com/dlinfo.asp?FileID=1337
Discuss this download here.
Codeunit 5000, function CreateNewService:
LocalTargetPath is new local variable of type text[1000].
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I am getting error as " The Object metadata does not exist. Identification fields and values: Object Type=Page,Object Id=50000"
Manish
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
When running the page directly from classic it was opening different database & searching page 50000.
Modified the config file with correct database & it started.
I have another query,
I don't see any option to eidt/modify the existing service withing from navision (Page 50000).
Manish
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I tried to modify this gadget so that I could set the user account for the service and enable TCP/IP-port sharing. Cause I'm not familiar with the .NET System variables, I gave it up. I could though change the code so, that the SC utility would be called from the command line, but that would miss the point...
The Parameters is string containing all the parameters for the sc command. You can modify the obj and add password parameters there if you want... ;-)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
So you are saying I could simply add the string "depend= NetTcpPortSharing obj= "NT Authority\NetworkService"" in the end of the line after the STRSUBSTNO function ends?
This would really help me on our development environment where we have over 100 NAV db:s...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
This is embarrassing. I tested the string your app creates with and error message - and both parameters were already there...
TY very much, I'll start implementing this now.