You are on page 1of 5

Scheduling a Report for Automatic Update

Most of the NWS-A reports cannot by default be updated periodically, that is,for
example,to have the report automatically updated once a week. If the report should
be automatically updated with a certain periodicity, it must be slightly modified
before it can be used, refer Section 3.10.3.

3.10.1 Reports Already Prepared for Scheduling

Some reports are delivered in a version for scheduling and do not need any manual
updates. These reports are placed in the category Scheduled reports with the
suffix _sched added to the report file name.

3.10.2 Scheduling the Report

1. Open the report to be scheduled.


2. Choose File -> Send to -> Broadcast Agent .

Response: The Send Document to Broadcast Agent dialog box is


displayed.

3. Fill in the tabs in the dialog box as follows:


General If there are several Broadcast Agents available, choose which
one to use from the Server list.

Actions Select one or more actions to be performed, for example


Refresh .

Categories If necessary, select categories for the report.

Scheduling Specify when the report should be refreshed by clicking


Change and fill in the Change Schedule dialog box.

Distribution Select how the report should be distributed:

o Sent to other NWS-A users via the Repository


o Published on a web server, that is saved as an
HTML file in a directory on the web server

o Saved as a file on a file server (or local hard


drive)

4. Click OK to send the report.

If you selected Refresh as an action, the Enter or Select Values dialog box
is displayed. In that case, fill in the values and click OK .

Response: A message is displayed stating that the report has been sent to the
Broadcast Agent.

5. Click OK to dismiss the message.

3.10.3 Preparing a Report for Periodic Updates

1. Open the report to be prepared.


2. Choose File -> Save As and save the report with a different name.
3. Choose Data -> Edit Data Provider .

Response: The List of Data Providers dialog box is displayed.

4. Select one of the data providers and click OK .

Response: The Query Panel window is displayed.


5. Delete all the conditions on Time objects in the Conditions panel, for
example by dragging them to the Classes and Objects list.
6. Change the view from Classes and Objects to Predefined Conditions by
clicking on the Conditions radio button ( ), which is at the bottom of
the Classes and Objects list.

Response: A list of predefined conditions is displayed instead of the classes


and objects.
7. Drag new conditions to the Conditions field. The following conditions can be
used:

Note:
The number of days is specified in the next step.

From (Start Sets the start of the measurement period to the specified
Time) number of days before the date the report is refreshed.

To (Stop Time) Sets the end of the measurement period to the specified
number of days before the date the report is refreshed.

To Day Results in a report for the day before the report is refreshed.

To Week Results in a report for one week before the report is


refreshed.

To Month Results in a report for one month before the report is


refreshed.

For example:

If From Start Time is used, 5 days is specified, and the report


is refreshed on 2001–10–27, the measurement period in the
report will be 2001–10–22 to 2001–10–27.

If To Stop Time is used, 2 days is specified, and the report is


refreshed on 2001–10–27, all data in the database up to 2001–
10–25 will be used in the report.

To get the correct sort order in the prompt, the From and To
conditions are given the numbers 2 and 3 (not shown in the
condition text).

If there are more conditions with the same number (2 or 3),


change the conditions by double-clicking Type a new prompt
and then replace the number with a non-occupied number.

8. Press Save and Close. Repeat step 3 – 7 for all data providers.
9. Choose the data provider named trueRPL in the List of data providers
dialog box.
10. Delete the condition named Resolution in the Conditions panel by dragging
it to the Classes and Objects list.
11. Drag the condition named Resolution Schedule to the Conditions field.
This condition can be found under Common/True Values/Scheduling .
12. <select an operator> is marked. Double-click on Equal to , then double-
click Type a new prompt , and enter 1 . Resolution: Press enter. If this
prompt already exists, a warning will be displayed. Ignore it by clicking Ok .
13. Delete all objects from the Result Objects field by dragging them to the
Classes and Objects list.
14. Drag the objects trueRpl Schedule, trueStartTime Schedule and
trueStopTime Schedule to the Result Objects field. These conditions can
be found under Common/True Values/Scheduling .
15. Click Save and Close.
16. Select the cell just right to Measurement Period: . The formula field should
now display =Max(<trueStartTime Normal>) . Change this to
=Max(<trueStopTime Scedule>) . Press the return key to confirm.
17. Select the second cell to the right. The formula field should now display
=Max(<trueStartTime Normal>) . Change this to =Max(<trueStopTime
Schedule>) . Press the return key to confirm.
18. Repeat step 16 – 17 for all sheets in the report.
19. Go to the first sheet of the report. Display the report structure by selecting
View -> Structure .
20. Select the cell beneath the column heading Data Availability (%) . The
formula field should now display =(<TABLENAME_CFAIL> / <trueRpl
Normal>) * 100 . (Note: TABLENAME can beany data table). Change this to
=(<TABLENAME_CFAIL> / <trueRpl Schedule>) * 100 . Press the
return key to confirm.
21. Switch off structure display by selecting View —> Structure .
22. Choose File —> Save to save the changes to the report.

The modified report is now ready to be scheduled for periodic updates.

You might also like