Hi, we often delete users zup-file, and we’re doing this by physically deleting the file. Is there anyway it can be done from Navision, like : IF UsersZup.GET(USERID) THEN UsersZup.DELETE(True);
Hi, short : YES, use the file variable like var Typ ZUPFile file Code fragment zupfile.open(path) zupfile.delete
My problem is : can I find the path (and filename) for the zup-file when I am in Navision. I know that it can be in the shortcut to Navision, but can I read it from a report etc ?
Why do you delete the zup-file ? Perhaps an other solution is possible ? Do you give a non standard path for zup-file to navision per commandline ?
Of course we try all others solutions before deleting the zupfile, but sometimes it’s the only solution…
I’ve seen the following structure : All zup-files are on a mapped network-drive All zupfiles are named .zup In such a case you need no internal help from navision to find the searched zup-file
You’re absolutely right iammicky, it IS possible to find the zup-files on a network-drive. But I’m trying to find a solution, so a (super)user can delete a zup-file from Navision. If Navision can tell me where the zup-file is, the superuser don’t have to worry about which network-drive and path to search in.
The solution above means : All zup-files are in the SAME mapped network drive. These one path then can be hardcoded in navision and by choosing an UserId the filename with path is completed.
I DON’T ever-never hardcode !!!
Then you can save the path in a table like Tab79 to a new field
oin theory it all sounds great, except that the zup file does not exist until you exit navision. When you log into navision, it copies the zup file into a temporary file, then when you log out (successfully) it replaces the old zup file with a new one. If you delete the zup file whilst logged in, it will just be replaced when you log out. if you try to delete the temp file, you will not be able to since it is a locked file. just do it through the os its easier.