The resource property of the UI elements FileUpload and FileDownload determines the data of the file to be transferred. The resourceproperty is of the predefined Dictionary Simple Type Resource from the package com.sap.ide.webdynpro.uielementdefinitions.
Below you will find a description of how to bound the resourceproperty to the context.
● You have already created a Web Dynpro DC with a view.
● You have inserted a FileDownload or a FileUpload element into the view.
...
1. Create a value attribute called resource in the context of the view.
2. In the Properties window, select the type property and . The Type Selectionwizard is started.
3. Select the Simple Type, navigate to Dictionaries → Local Dictionary → com.sap.ide.webdynpro.uielementdefinitions and select Resource. Confirm with Okay.
4. In the View Designer, switch to the Layout tab, select the desired FileDownload or FileUpload element and select the resource property in the Properties window.
5. Select the button to the right, select the resource value attribute in the context viewer and confirm with Okay.
6. Save your metadata.
You have created a context attribute of the Dictionary Simple Type Resource and have bound the resource property of the FileDownload or FileUpload element to this attribute. The data source is now bound to the data source of the file to be transferred and can be used.