With FileDropTarget you can define an area in the Web Dynpro application, where a file can be dropped onto. The file can be dragged for example from the Windows Explorer.
FileDropTarget only can be used, if the application is running in SAP NetWeaver Business Client (NWBC).
● fileNamePatterns
The initial value is "*" and allows all types of files to be dropped. The file name patterns determine a restriction on the permissible names of files dropped here. The following wildcards can be used:
○ “*”. The asterisk can be used as wildcard for 0 to n characters
○ “?”. The question mark replaces a single character.
○ “|”. The vertical bar character is used to separate multiple file name patterns from one another (in a disjunctive manner).
Example: *.gif|*.jpg|*.png A file may be dropped onto this file drop target if and only if its name matches at least one of the individual file name patterns
An empty pattern ("") allows no files to be dropped!
● resource
Specifies the data source and contains the data, the file name, and the MIME type. The resource property must be bound to a context attribute of the type IWDResource. More information: Binding resource Property
Name |
Interface |
Type |
Initial value |
Bindable |
contextMenuBehaviour |
IWDContextMenuProvider |
WDContextMenuBehaviour |
inherit |
not bindable |
contextMenuId |
IWDContextMenuProvider |
String |
|
not bindable |
enabled |
IWDUIElement |
boolean |
true |
bindable |
fileNamePatterns |
IWDFileDropTarget |
String |
* |
bindable |
resource |
IWDFileDropTarget |
IWDResource |
|
binding required |
tooltip |
IWDUIElement |
String |
|
bindable |
visible |
IWDUIElement |
WDVisibility |
visible |
bindable |