Show TOC Start of Content Area

Procedure documentation Selecting an Image in a Form  Locate the document in its SAP Library structure

Use

You want to display a different image for each object, for example a photo for each news item. The author should select images from a KM object or upload new images from a local PC.

 

Procedure

Perform the following steps in the XML Forms Builder:

...

       1.      Create a data schema element with the data type Image (see Data Types of Data Elements).

       2.      Create a browser control (This graphic is explained in the accompanying textBrowser) on the form, with reference to the data schma.

Choose Thumbnail in the Action property of the control.

You can define the start folder for input help (see Browser Control).

       3.      Create an image control (This graphic is explained in the accompanying textImage) on the display or list form, with reference to the same data schema.

Choose Schema Reference in the property Image URL.

 

Note

The system stores the path to the image in the repository (for example, /documents/Images/logo.gif) in the XML file. When the image is displayed, the system completes the path by making it into a full URL. For this to work, the data schema element must have the data type Image.

You can specify the exact URL for an image, instead of selecting an image using input help. If this is the case, the data schema element has to have the data type String.

 

Result

When you call up input help in the form, you reach the appropriate start folder. You can navigate to sub-folders. The images are displayed as thumbnails. You can select an image or upload a new image from your local PC.

 

 

End of Content Area