Options

NAS 2013

tedl30tedl30 Member Posts: 59
edited 2013-11-12 in NAV Three Tier
I have some simple code to genereate file on server and then download to the client

FileMgt --> codenit 419

Like this

FileName := FileMgt.ServerTempFileName('txt');
FileMgt.DownloadTempFile(FileName);

This code working, but when the same code runing with NAS then not working.

Is exist any restrictions when working with nas for codenit file management?

have a nice day

Comments

  • Options
    vremeni4vremeni4 Member Posts: 323
    Hi ,

    I think this is probably caused by permission issue.
    Does NAS has enough permission to access this folder on the server ?
  • Options
    tedl30tedl30 Member Posts: 59
    vremeni4 wrote:
    Hi ,

    I think this is probably caused by permission issue.
    Does NAS has enough permission to access this folder on the server ?


    "He" is administrator
  • Options
    NAVPRAKASHNAVPRAKASH Member Posts: 10
    May be the below post answer your question

    viewtopic.php?f=32&t=57992
  • Options
    thegunzothegunzo Member Posts: 274
    In NAV 2013 the NAS is running at the server.
    There is no need to download a file that already exists on the server, is there ?

    Just copy the file to the new location you are looking for

    IF NOT GUIALLOWED THEN BEGIN
    // This code is executed on NAS
    FileMgt.CopyServerFile(SourceFileName,TargetFileName,Overwrite);
    FileMgt.DeleteServerFile(FilePath);
    END ELSE BEGIN
    // This code is executed on the client
    ... file download
    END;
    ________________________________
    Gunnar Gestsson
    Microsoft Certified IT Professional
    Dynamics NAV MVP
    http://www.dynamics.is
    http://Objects4NAV.com
Sign In or Register to comment.