Start of Content Area

Procedure documentationData Binding for resource Property with FileDownload and FileUpload  Locate the document in its SAP Library structure

Use

The resource property of the 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. 

Prerequisites

·        You have already created a Web Dynpro project with a view.

·        You have inserted a FileDownload or a FileUpload element into the view.

Procedure

...

       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 Selection wizard is started.

       3.      Select the Dictionary Simple Type, navigate to Dictionaries Local Dictionary com.sap.ide.webdynpro.uielementdefinitions  and select Resource. Confirm with Okay.

This graphic is explained in the accompanying text

       4.      In the View Designer, switch to the Layouttab, select the desired FileDownload  or FileUpload element and select the resourceproperty 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.

Result

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. 

 

End of Content Area