//
archives

Folder Path

This category contains 2 posts

Creating a File through NAS in Local,Shared Folder

// Write to a local hard drive MyFile.CREATE(‘<LocalDrive>:\NAStestLocal.txt’); MyFile.WRITE(‘Hello Mike!!!’); MyFile.CLOSE; COMMIT; // Write to a shared folder MyFile.CREATE(‘\\SharedDriveName\Sharedfolder\NAStestSharedCompName.txt’); MyFile.WRITE(‘Hello Mike!!!’); MyFile.CLOSE; COMMIT; // Write to a shared VPN folder MyFile.CREATE(‘\\192.168.1.13\d$\Navision\Import\NAStestSharedIP.txt’); MyFile.WRITE(‘Hello Mike!!!’); MyFile.CLOSE; COMMIT; Reference: http://www.mibuso.com/forum/viewtopic.php?f=23&t=8582&hilit=folder+path+for+nas

Folder Select in Navision

Folder selection in NAV can be achieved using Windows Shell Automation Variable. Name                    DataType             Subtype                                                                             Length WindowsShell     Automation        ‘Microsoft Shell Controls And Automation’.Shell Folder                   Automation        ‘Microsoft Shell Controls And Automation’.Folder2 Path                       Text                                                                                                                   250 Name      ConstValue Text000 Select %1 IF ISCLEAR(WindowsShell) THEN CREATE(WindowsShell); Folder := WindowsShell.BrowseForFolder(0,STRSUBSTNO(Text000,FIELDCAPTION(Path)),0); IF NOT ISCLEAR(Folder) THEN Path := FORMAT(Folder.Items().Item.Path);