Configuring Units, Indexes, and Update-Lock Expressions

This chapter describes how to perform miscellaneous configuration tasks.

This chapter covers the following topics:

Before Configuring Units and Indexes

Before you configure units and indexes, be sure to do the following:

Configuring Indexes and Exchange Rates

Monetary units of measure can use financial indexes and exchange rates. Each index and exchange rate is stored in a different table, except for the placeholder index (constant, equals one for all dates).

The placeholder index is used to switch a worksheet back to the same monetary units that are used in the imported data. By default this is called dollar $, because monetary values are usually imported in dollars.

To create an index or exchange rate

  1. Click Configuration > Configure Indexes.

    The Configure Indexes and Exchange Rates dialog box appears.

    the picture is described in the document text

  2. Click File > New. Or click the New button.

  3. In Index Name, type the name of the index or exchange rate, as it should appear in worksheets.

  4. In Table Name, type the name of the table in which Demantra should store information for this index or exchange rate. Demantra will automatically create this table.

    Note: For simplicity, use the same name as you used for the index or exchange rate.

  5. For Calculation Type, click one of the radio buttons to indicate whether this is an index or an exchange rate.

  6. If this should be a default option, click Set as default.

  7. Click File > Save.

  8. To enter data for this index or exchange rate:

    1. Click the ellipsis (...) button next to the Table Name field.

      Business Modeler displays the following window:

      the picture is described in the document text

    2. To add an entry, click Insert.

    3. For Index Date, specify a date, using the date format required by the database.

    4. For Index Value, specify the value that takes effect on the specified date. This value is multiplied by the base unit price.

    5. Repeat as needed. When you are done, click Save.

    6. Click Close.

  9. The new index or exchange rate is not associated with any component. See “Creating or Modifying a Component”.

To edit an index or exchange rate

  1. In the left side of the dialog box, click the name of any component that includes the index or exchange rate. This expands the display so that you can see the indexes and exchange rates in that component.

  2. Click the index or exchange rate.

  3. Modify as needed.

  4. Click File > Save.

To delete an index or exchange rate

  1. Select an index or exchange rate.

  2. Click Delete.

  3. Business Modeler prompts for confirmation.

  4. Click OK.

To see which indexes a component uses

  1. In the left side of the dialog box, click the plus sign (+) to the left of the component name.

    The hierarchy expands to display all the indexes and exchange rates that are used in this component.

    the picture is described in the document text

    To assign indexes and exchange rates to a component, see “Creating or Modifying a Component”.

Editing Values for Indexes and Exchange Rates

To edit values for the indexes

  1. Click System > Maintain > Edit Installed Indexes.

    The Installed Indexes List dialog box appears.

  2. Click a table and then click OK.

    A dialog box appears for the selected table.

  3. To insert new values, click Insert and then type values in the new row that appears.

  4. To update the list after inserting new values, click Update. Or, to reset the list to the original values, click Reset.

Configuring Units

If the database contains the appropriate unit conversion data, you can define two general kinds of units of measure to use in Demantra:

The procedure is slightly different for these two kinds of units.

To create a size unit

  1. Click Configuration > Configure Display Units.

    • The Configure Display Units dialog box appears.

      the picture is described in the document text

  2. Click File > New. Or click the New button.

  3. In Display Units, type the name of this unit of measure, as it should appear in worksheets.

  4. In Data Table, type the name of the table (such as t_ep_sku) in which Demantra contains conversion factors for this unit.

    Note: The conversion factors must be imported, because these factors are generally different for each SKU and may vary over time.

  5. In Data Field, type the name of the field in this table that contains the conversion factors for this unit.

  6. In Data Expression, type an expression that retrieves the conversion factors for this unit.

  7. Click File > Save.

  8. The new unit is not associated with any component. To make this unit available to users, see “Creating or Modifying a Component”.

To create a monetary unit

  1. Click Configuration > Configure Display Units.

    The Configure Display Units dialog box appears.

  2. Click File > New. Or click the New button.

  3. In Display Units, type the name of this unit of measure, as it should appear in worksheets.

  4. In Data Table, type the name of the table in which Demantra contains conversion factors for this unit.

  5. In Data Field, type the name of the field in this table that contains the conversion factors for this unit.

  6. In Data Expression, type an expression that retrieves the conversion factors for this unit.

  7. For each index and exchange rates by which this unit could potentially be multiplied, drag the index/exchange rate from the left list to the right list. Within a worksheet, the user will be able to select one of these at a time.

  8. Click File > Save.

  9. The new unit is not associated with any component. To make this unit available to users, see “Creating or Modifying a Component”.

To edit a unit

  1. Click Configuration > Configure System Units.

    The Configure Display Units dialog box appears.

  2. In the left side of the dialog box, click the name of any component that includes the unit. This expands the display so that you can see the units in that component.

  3. Select a unit.

  4. Modify as needed.

  5. Click File > Save.

To delete a unit

  1. Click Configuration > Configure System Units.

    The Configure Display Units dialog box appears.

  2. In the left side of the dialog box, click the name of any component that includes the unit. This expands the display so that you can see the units in that component.

  3. Select a unit.

  4. Click File > Delete.

    • Business Modeler prompts for confirmation.

  5. Click OK.

To see which units a component uses

  1. Click Configuration > Configure System Units.

    The Configure Display Units dialog box appears.

  2. In the left side of the dialog box, click the plus sign (+) to the left of the component name. The hierarchy expands to display all the units that are used in this component.

    the picture is described in the document text

    To assign units to a component, see “Creating or Modifying a Component”.

Associating Units with Levels

Before users can access a unit of measure, you must associate that unit of measure with each aggregation level with which it could conceivably be used. Within a worksheet, the user will be able to select any unit associated with any aggregation level that the worksheet uses.

There are two equivalent approaches you can use:

The approach you choose depends on how many levels you have and how many of them should use a given unit.

To associate a unit with all levels

  1. Click Configuration > Configure System Units.

    The Configure Display Units dialog box appears.

  2. In the left side of the dialog box, click the name of any component that includes the unit. This expands the display so that you can see the units in that component.

  3. Select a unit.

  4. Click Link Unit to All Levels.

  5. Optionally remove this unit from specific levels, if needed, as described below.

To associate a unit with a level

  1. Click Configuration > Configure Units for Levels.

    The system then displays the following list, which includes one line for each existing level-unit association.

    the picture is described in the document text

  2. Click Add.

  3. In the Group column, select the level.

  4. Do one of the following:

    • Click the corresponding cell in the Group Unit column and select a unit value.

    • Click the appropriate cell in the Group Unit column and modify its value.

  5. Click Save to save the configuration.

  6. Click Close to close the dialog box.

To remove a unit from a level

  1. Click Configuration > Configure Units for Levels.

    The system then lists all the existing level-unit associations.

  2. Click the line that corresponds to the association you want to remove.

  3. Click Delete.

  4. Click Save to save the configuration.

  5. Click Close to close the dialog box.

Configuring Time Units

Any Demantra solution has a base time unit (often weeks or months). Demantra provides some larger predefined time units, and you can add others. In general, there are two types of time units:

To configure a simple time unit

  1. Click Tools > Maintain > Edit Time Resolution.

  2. Click Insert.

  3. In the Description column, type a name for the time unit.

  4. In the Time Scale column, type the number of base time units in this new time unit. Ignore the Inputs Column field.

  5. To save changes, click Save. Or to exit without saving changes, click Cancel.

To configure a data-dependent time unit

  1. Using a database tool, add a column to the Inputs table that indicates how to group the base time buckets.

  2. Within the Business Modeler, click Tools > Maintain > Edit Time Resolution.

  3. Click Insert.

  4. In the Description column, type a name for the time unit.

  5. In the Inputs Column field, select the column from Inputs that contains the data for this time unit. Ignore the Time Scale column.

  6. To save changes, click Save. Or to exit without saving changes, click Cancel.

To delete a time unit

  1. Click Tools > Maintain > Edit Time Resolution.

  2. Click a row in the Time Resolution screen.

  3. Click Delete.

  4. To save changes, click Save. Or to exit without saving changes, click Cancel.

    See also

    “Creating a Time Aggregation”

Configuring Update-Lock Expressions

An update-lock expression checks to see if a condition is met for each combination and if so, and prevents users from updating the database (saving the changes to the combination). This expression evaluates to either true or false. If the expression evaluates to true, then when the user tries to save the combination, a message is displayed and the worksheet data is not saved. The user must correct the data before the worksheet can be saved.

To configure an update-lock expression

  1. Click Configuration > Configure Update Locks.

    The Edit Update-Lock Expressions dialog box appears.

    the picture is described in the document text

  2. Click the New button.

  3. In the Lock Description field, add or edit the title of the expression.

  4. Click the Lock Condition field.

    The Client Expression Editor appears.

  5. Create or edit an expression that evaluates to either true or false. See “Specifying Server and Client Expressions”.

    Note: Be sure that any constant values are expressed as the correct type of data (numeric, string, or date) for the expression you use. For example, be sure to use double quotes around constant string values if your expression uses a string-type series.

  6. In the Message Text field, create or edit the message to be displayed when the update-lock expression returns true. This message should be as informative as possible so that the user knows which of his or her edits is responsible for the update-lock condition.

  7. Click the Save button.

To delete the contents of a field

  1. Click the Delete button.

To refresh data from the database

  1. Click the Retrieve button.