Entering content frame

Background documentation FileUpload Locate the document in its SAP Library structure

You can use the FileUpload UI element to upload files from the client to the server. The UI element appears with an input field, in which the directory path and the file name appear, and a button for searching for the file.

Note

When the template is designed there is no check for the tool tip property to guarantee Accessibilty.

A tooltip does not necessarily have to be set for this UI element, but it could make sense to set it if it contains detailed semantic information.

Example (with Label):

This graphic is explained in the accompanying text

This graphic is explained in the accompanying text

 

Runtime Class

CL_WD_FILE_UPLOAD

 

Properties in the View Designer

Name

Type

Initial Value

Bindable

ID

STRING

(automatic)

No

data

XSTRING

 

mandatory

enabled

WDY_BOOLEAN

true

Yes

explanation

Text

 

No

fileName

STRING

 

Yes

mimeType

STRING

 

Yes

textDirection

WDUI_TEXT_DIRECTION

inherit

Yes

tooltip

Text

 

Yes

visible

WDUI_VISIBILITY

visible

Yes

width

STRING

 

Yes

Note

Further properties that can be inherited are defined in the associated higher-level class.  The associated interface elements are:

·         UIElement

·         ViewElement

Dynamic Programming

For dynamic programming the same properties, events, and aggregations are provide in the View Designer. Bear in mind the different spellings.

Dynamic Programming of Properties

View Designer Name

Runtime Name

Type

data

DATA

XSTRING

enabled

ENABLED

WDY_BOOLEAN

explanation

EXPLANATION

WDY_MD_TRANSLATABLE_TEXT

fileName

FILE_NAME

STRING

mimeType

MIME_TYPE

STRING

textDirection

TEXT_DIRECTION

WDUI_TEXT_DIRECTION

 textDirection: inherit

CL_WD_FILE_UPLOAD=>E_TEXT_DIRECTION-INHERIT

 textDirection: ltr

CL_WD_FILE_UPLOAD=>E_TEXT_DIRECTION-LTR

 textDirection: rtl

CL_WD_FILE_UPLOAD=>E_TEXT_DIRECTION-RTL

tooltip

TOOLTIP

WDY_MD_TRANSLATABLE_TEXT

visible

VISIBLE

WDUI_VISIBILITY

 visible: none

CL_WD_FILE_UPLOAD=>E_VISIBLE-NONE

 visible: visible

CL_WD_FILE_UPLOAD=>E_VISIBLE-VISIBLE

width

WIDTH

STRING

 

Example

You can find examples of this interface element in the system in the Web Dynpro application WDR_TEST_UI_ELEMENTS, and in the component WDR_TEST_EVENTS in the View FileUpload.

 

 

Leaving content frame