Exposing Web Pages as Callable Objects
Use
You can display a Web page as a process step, or attach it to the process as an info callable object.
Use this callable object type to display third-party Web pages. Do not use it to reference SAP applications embedded in the SAP Enterprise Portal.
Procedure
- Open the gallery, and choose Create Callable Object from the contextual panel.
- From the Type list, select User Interface → Web Pages and enter the required basic data as follows:
Parameter Description Name
Enter an arbitrary name for the callable object.
Description
Describe the callable object by entering a brief description of its functions, for example.
Original Language
Choose the language in which the translatable texts of the callable object definition are being created.
Folder
Select a folder in the gallery where the callable object definition is stored.
- Choose Next to open the Define Object screen.
In field Base URL, enter a string that defines the Web page URL without the parameters that you want to define dynamically at runtime.
- Choose Next to open the Define Input screen.
Define all parameters that you want to add dynamically to the Web page URL. To do that:
- Choose Insert New
- Overwrite the default entries as follows:
- Name - enter a meaningful name for the parameter. It is used as a label for the input field where you enter a value for the parameter at execution.
- Technical Name - enter the exact name of the parameter. At execution it is appended to the base URL of the Web page.
- Type - select the parameter type. Typically, it is String.
- Repeat the procedure for each parameter that you want to insert.
- Choose Next to open the Set Configuration screen.
For this callable object type, you can configure the height of the screen area where the Web page is to be displayed (in pixels).
- Choose Next, and then Finish and Open.
The design time for the callable object opens. You can edit the object definition, if required.
Optionally, you can grant read or write permissions for the callable object to other users. To do that, open the Permissions tab page.
- To activate the object, choose
(Activate).
Example
You can trigger a Google search with a search string that you define dynamically. To do this:
- Complete steps 1 and 2 as described in the general procedure above.
- In step 3 enter the following base URL:
http://www.google.com/search
- In step 4 define an input parameter as follows:
- Enter q for Technical Name.
- Enter Search for Name.
- Select String for Type.
- In step 5 leave the default value. Choose Finish and Open.
- Open the Test tab page. In field Search, enter an arbitrary string and choose Execute.
The results of the Google search are displayed.