Show TOC Start of Content Area

Procedure documentation Binding resource Property   Locate the document in its SAP Library structure

Use

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. 

Prerequisites

      You have already created a Web Dynpro DC 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 This graphic is explained in the accompanying text. 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.

This graphic is explained in the accompanying text

       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 This graphic is explained in the accompanying text 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