Export (0) Print
Expand All

UPLOAD Function (File)

Microsoft Dynamics Nav 2009

Sends a file from a RoleTailored client to a Microsoft Dynamics NAV Service.


[Ok :=] UPLOAD(DialogTitle, FromFolder, FromFilter, FromFile, ToFile)

Parameters

DialogTitle

Type: Text

The title that you want to display on the dialog box.

FromFolder

Type: Text

The name of the folder that is displayed in the dialog box. This is the default value and the user can change it.

FromFilter

Type: Text

The type of file that is displayed in the dialog box. This is the default value and the user can change it.

FromFile

Type: Text

The name of the file that you want to upload to the Microsoft Dynamics NAV service.

ToFile

Type: Variant

The file name that is shown in the dialog box. This is the default value and the user can change it.

Type: Boolean

If you omit this optional return value, a run-time error occurs if the file cannot be found. If you include a return value, it is assumed that you will handle any errors.

true if the file was uploaded; otherwise, false.

In the new architecture the business logic is run on the middle-tier server and not on the client.

This means that in Microsoft Dynamics NAV, files are created on the Microsoft Dynamics NAV service and not locally on the client computer as is the case in the Classic client. When you write code for the application, you must therefore remember where the files are created.

UPLOAD Function (File) and UPLOADINTOSTREAM Function (File) are used to send a file from a RoleTailored client to a Microsoft Dynamics NAV service.

DOWNLOAD Function (File) and DOWNLOADFROMSTREAM Function (File) are used to send a file from a Microsoft Dynamics NAV service to a RoleTailored client.

UPLOAD(‘Upload file’,’C:\’,’Text file(*.txt)|*.txt’,’Test.txt’,’Test’)

Community Additions

ADD
Show:
© 2014 Microsoft