Start of Content Area

Procedure documentation Setting the URL at Runtime  Locate the document in its SAP Library structure

Use

The URL of a URL iView can be set at runtime, for example, when you have many Web pages that you want to display in the portal but you do not want to create and maintain a URL iView for each one. You can create a single URL iView and pass the URL as a parameter in the request.

The task of setting the URL at runtime involves the following:

      Developer: Creates a link to the URL iView that includes a parameter whose value is the URL of the URL iView.

      Administrator: Modifies the URL iView’s properties to specify that the URL is set at runtime.

Procedure

...

       1.      Set the Forced URL – Enabled to Yes.

The default is No.

       2.      In the Forced URL – Parameter Name iView property, enter the name of the URL parameter to use for retrieving the iView’s URL.

The default is forcedURL.

Creating a Link to the URL iView

When creating a link to the URL iView from another iView, add a URL parameter, as follows:

      Parameter Name: The value of the URL iView’s Forced URL – Parameter Name property.

      Parameter Value: The URL of the Web page to be displayed in the URL iView.

If this URL contains URL parameters, then the entire URL – including the URL parameters – must be URL encoded, as in the following example:

String myURL = URLEncoder
    .encode(
"http://www.google.com/search?hl=en&q=Baseball");

 

End of Content Area