Url Iview Implementation
Url iviews are used for integrating non SAP website content in to the SAP Portal. Below help link explains more in detail about URL iview implementation
Multiple or Dynamic URLs
This document explains an implementation scenario where there is a business requirement to integrate user specific Url iviews in to the portal. On such requirements either the complete URL changes for every user or the parameters that are passed along with the url changes for every user .
So one cannot create multiple URL iviews to achieve this business need.
Forced URL
There is a property “Forced URL” in the url iview . When enabled , then same url iview can be called but with different urls/parameters. The above help documentation explains it better.
The motive of this document is to explain how to pass the parameters of the url. Normally it does not work in a straight forward say if the url has parameters to be passed.
Example
https://www.google.co.in&q=SAP&hl=DE
Here the url has two parameters “q” and “hl” to be passed.
Next sections show on how to use this parameter and what is the issue in the approach.
How to use ForcedURL Property
http://<host>:<Port>/irj/portal?NavigationTarget=pcd:portal_content/Test/testurl&forcedURL=https://www.google.co.in?q=SAP&hl=FR
The navigation target can also be the short url of the iview instead of the pcd path
Issue in this approach
By calling this url in this way , the parameters does not get recognized.
http://<host>:<Port>/irj/portal?NavigationTarget=pcd:portal_content/Test/testurl&forcedURL=https://www.google.co.in?q=SAP&hl=FR
Encoding
The url that is called should be encoded . So in the called URL replace the special character in the following way.
? as %3F
= as %3D
& as %26
So the resulting url is
http://<host>:<Port>/irj/portal?NavigationTarget=pcd:portal_content/Test/testurl &forcedURL=https://www.google.co.in%3Fq%3DSAP%26hl%3DFR
The complete Special character encoding list is given in the w3schools link HTML URL Encoding Reference
Incase of this url being dynamically generated with a program,then that also should be
encoded.Refer this help link Setting a Dynamic Runtime URL - iViews - SAP Library
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
41 | |
25 | |
17 | |
14 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 |