Adding an execute object action

The execute object action allows you to automatically execute queries, a visual report, procedure, or quick report, and export, mail, or print it.

About this task

To add an execute object action to a scheduled task:

Procedure 1

  1. Open a task in the Task List window.
  2. In the Scheduled Tasks view, select the task that you want to work with and click Edit Task.
  3. Click Add Action.

    The Action Wizard opens.

  4. Specify a name for the action in the Action name field, click Execute object, and then click Next.

    The Specify object page opens.

  5. Select the type of object that you want to execute.
  6. Specify the location of the object.

    There are two options:

    • To specify the static source location of the object, click Path and then click the ellipsis (...) at the bottom right of the Source area.

      The Open window opens.

    • Navigate to and select the object and click Finish.

      The Open window closes.

    • To specify a conditional source location for the object, click Formula and then click the ellipsis (...).

      The Formula editor opens.

    • Specify the formula to use to determine the location of the object and click OK.

      The Formula editor closes.

  7. Select Set a new data source check box to specify a particular data source against which you want to execute the object. Then click the ellipsis (...), the Add Data Source window opens, select the required data source and click OK.
  8. To add an available data source, click Add Data Source. The Add Data Source window opens.
  9. Navigate to and select the data source that you want to add, specify a login name and password for the data source, and click OK. The Add Data Source window closes.
  10. Click Next.

    If the object that you specified in step 6 includes a prompt, the Specify variables page opens. Otherwise, the Specify operations page opens, and you must go to step 11 .

    The Edit Variable window opens.

  11. On the Specify variables page, double-click the variable that you want to work with.
  12. In the Edit Variable window, specify the value for the variable or use the Formula Editor to create an expression.
  13. Click OK to close the Edit Variable window, then click Next.

    The Specify operations page opens.

  14. On the Specify operations page, click Add Operation.

    The Operation Wizard opens.

  15. Select an operation and click Next.
  16. Specify the options for the selected operation and click Finish.

    The Operation Wizard closes.

  17. When you have finished adding all of the operations that you want the action to run, click Finish.

    The Action Wizard closes and control returns to the Task window.

  18. Click OK.

    The Task windows closes and control returns to the Task List window.

  19. Click OK.

    The Task List window closes.

Procedure 2

If you have scheduled the task from the context menu, follow this procedure.

  1. On the Local Task or Remote Task page, click Add Action.

    The Action Wizard opens.

  2. Specify a name for the action in the Action name field.
  3. Select Execute object and click Next.

    The Specify object details page opens.

  4. By default, the location of the object is displayed in the Path field.

    If you want to change the object, perform the following steps:

    • Path:
      1. To specify the static source location of the object, click Path and then click the ellipsis (...) at the bottom right of the Source area.

        The Open window opens.

      2. Navigate to and select the object and click Finish.

        The Open window closes.

    • Formula:
      1. To specify a conditional source location for the object, click Formula and then click the ellipsis (...).

        The Formula editor opens.

      2. Specify the formula to use to determine the location of the object and click OK.

        The Formula editor closes.

    By default, the selected object's datasource details will appear in the Data Sources table.

  5. Select Set a new data source check box to specify a particular data source against which you want to execute the object. Then click the ellipsis (...), the Add Data Source window opens, select the required data source and click OK.
  6. To add an available data source, click Add Data Source. The Add Data Source window opens.
  7. Navigate to and select the data source that you want to add, specify a login name and password for the data source, and click OK. The Add Data Source window closes.
  8. Click Next.

    If the object that you specified in step 4 includes a prompt, the Specify variables page opens. Otherwise, the Specify operations page opens, and you must go to step 9 .

    The Edit Variable window opens.

  9. On the Specify variables page, double-click the variable that you want to work with.
  10. In the Edit Variable window, specify the value for the variable or use the Formula Editor to create an expression.
  11. Click OK to close the Edit Variable window, then click Next.

    The Specify operations page opens.

  12. On the Specify operations page, click Add Operation.

    The Operation Wizard opens.

  13. Select an operation from the following and click Next.
  14. Specify the options for the selected operation and click Finish.

    The Operation Wizard closes.

  15. When you have finished adding all of the operations that you want the action to run, click Finish.

    The Action Wizard closes and control returns to the Task window.

  16. Click OK.

    The Task windows closes and control returns to the Task List window.

  17. Click OK.

    The Task List window closes.