Using the Tasks & Animations Panel

In this section:

Once you create a request, you want it to generate tasks that a user performs, such as clicking a button or moving from one field to another. These tasks are created using Ajax calls, which execute them as asynchronous calls in JavaScript. With Ajax, the JavaScript does not have to wait for the server response, but instead can:

Requests/Actions

The Requests/Actions drop-down menu is used to select the type of request or action to be taken. As a request is selected, it is displayed in the Requests/Actions list. You can use the adjacent arrows to move actions into the desired execution order. Each request also populates the Target type field with the available targets in which that request can be executed.

The Request selection types are described in the following list.

Run Request

Lists the requests you have created in the Requests & Data Sources panel. Each request selected populates the Target type field with the available targets in which that request can be executed.

Note: You must include a Connect task or the load does not work. The format is: <request type>/<procedure name>.<function>

For example,

Embedded procedure/Request1.Connect
Schedule Request

Lists the available requests created in the Requests & Data Sources panel.

Run Animation

Lists the available jQuery animations from the jQuery animation section.

Toggle Visibility

Toggles the selected Maintain Data form on and off.

Execute Task

Lists the available tasks to enable you to execute one task from within another.

Refresh

Creates an action to refresh the selected target.

Wait for completion

Allows you to specify that one request must complete before the next one begins. For example, if request1 is listed above the Wait for completion action and request2 is below it, request1 runs first and when completed, request2 runs.

JavaScript call

Creates a JavaScript call action. When using the JavaScript call, different results occur depending on what is returned. If the JavaScript call returns 0, then all actions after it run. If the JavaScript call returns 1, then one action after the call is skipped, and all actions after that are then run. If the JavaScript call returns 2, all actions after it are skipped.

Target Types

The Target type option contains a list of targets in which the request can be executed. These targets can be controls, frames, windows, or distribution methods when the Request is set to Schedule. These options can be different for specific actions.

Window

Executes the request in a window.

InfoWindow

Executes the request in the WebFOCUS-generated InfoWindow.

Frame

Executes the request in a selected frame.

Ajax call

Executes the request as an asynchronous call in JavaScript.

Note: The Ajax call is the only Target Type used by Maintain Data.

Schedule

Schedules the report request for distribution.

Deferred

Defers the running of the report.

Input Control

Specifies that an input control will be refreshed. This option is only available when you have a refresh request selected in the Requests/Actions list. You specify which control should be refreshed by selecting one from the Target/Template Name list.

Analytic Document

Specifies that an Analytic Document will be refreshed. This option is only available when you have a refresh request selected in the Requests/Actions list. You specify the Analytic Document that will be refreshed by selecting one from the Target/Template Name list.

Refresh BI Portal

Specifies that a WebFOCUS BI Portal page is refreshed. This option is only available when you have a refresh request selected in the Requests/Actions list. If you select All pages of the portal, all BI Portal pages are refreshed. If you select Current page only, only the current BI Portal page is refreshed.

JavaScript

Specifies that the selected task calls a JavaScript function that you type in the Function name field. This option is only available when you have selected JavaScript call in the Requests/Actions field.