Adding a Build Date and Build Time Item

You can insert the creation date and time of a single cBase or model (or the last model in a multimodel DivePlan) in a report with the $BUILD_DATE and $BUILD_TIME variables. Additionally, you can insert the creation date and time of a different cBase or model by specifying its full path after the variable.

The time (format: 13:22) variable inserts the last time the cBase or model used by the report was updated, or the time when the last model in a multimodel DivePlan was updated. Optionally, you can specify the build time for a different cBase or model by entering its full path as an argument. For example, $BUILD_TIME(c:\DI-Diver\Data\demo_drl.mdl) might display 15:01.

NOTE: ProDiver uses the DiveLine path for the $BUILD_DATE and $BUILD_TIME variables. Build time is probably best used in combination with another Item such as Build Date or paired with the cBase or model name.

Complete the following steps to create a report and insert the build date and time for the underlying cBase or model:

  1. Open any cBase or model that contains a build date. As an example, open the sales_90day.mdl file.

  2. On the Console, double-click Company.

  3. Click the MultiTab icon.

  4. On the Console, double-click Salesperson, and then Ship Month.

  5. Click the Report icon to open the Default Report dialog box.

  6. Click OK to display the MultiTab report.

  7. Unlock the report, and click the Add Item icon.

  8. Select the $BUILD_DATE variable.

  9. Click OK to Closedadd the cBase or model build date to the report.

  10. Optionally, use the tabs on the Add Item dialog box to move the build date to a different report location.
  11. To make room for the $BUILD_TIME value, move the build date by performing the following actions:

    • Double-click the Build Date Item to open the Edit Item dialog box.
    • Preceding the variable name, enter the following text: Model Creation Date:
    • On the Position tab, select Page Left and click OK.
  12. To add the latest build time for the underlying cBase or model perform the following actions:

    • Click the Add Item icon.
    • Select the $BUILD_TIME variable.
    • Preceding the variable name, enter the following text: Model Build Time:
    • On the Position tab, select Page Left and enter 15 in the Vertical box.
  13. Click OK to Closedview the report.

  14. Save this report as a marker called inserting_metadata for reuse in other variable-related topics.