Webview
You can use this task to integrate a web view component with the application. The web view component is an in-app browser utility that has the limited capabilities of the Internet browser.
To configure the Webview task:
- In the Events dialog box, scroll down.
- Under Add Tasks, click the Select Task list, and then select WEBVIEW.
- Click Add Task Config, and the Add Task dialog box opens.
- In the Add Task dialog box, click the Configuration area to expand it.
- In the Configuration area, perform the functions as follows:
Property/Field | Description |
URL | In this field, enter the URL string (for example:- www.google.com) that the web view component will display to the user by default. |
Criteria Object | Under Criteria Object, you can configure the query type request parameters to display the data in the web view component from the specified URL-based location. Defining the criteria object is an optional step. When the Webview task is executed, it accesses the configured URL location. It gets the required data and stores it in the parameters. Thus, the application displays the data in the Webview component. You can configure the request parameters as follows: |
Key | In this field, enter the key or parameter that will store the value that is fetched from the configured URL-based location. |
Type | Click this list and then select one of the following values: 1. Fixed Select this option to store the value in the parameter in string format. 2. Object Select this option to store the values in form of key/value pair in the JSON type object data structure. # Sample Object data structure { “addr”: { “state”: “abc”, “city”: “xyz”, “lane”: “c10” } } |
Data Path | In this field, enter the data path that will store the data that the application will display in the web view component. Case1:- (In the Type list, if you have selected Fixed) In the Data Path field, enter a fixed value (for example:- 1234). This value will be treated as a string. Case2:- (In the Type list, if you have selected Object) In the Data Path field, enter a data path as follows: #Sample Data Path getVal(“tempObject.addr”) |
- After you configure the first key or parameter under Criteria Object, click Add Criteria Object to configure another key or parameter.
- After you configure the URL and keys to display the data in the web view component, click Submit to configure the WEBVIEW task.
Was this article helpful?
YesNo