Add the rate routine variant identifier to PCF files

Before you begin

Before you begin, you must complete Add the rate routine variant identifier to the rate routine plugin.

About this task

In Studio, add the rate routine variant identifier to the following PCF files.

Procedure

  1. Add New Variant Identifier to the Rate Routine Details and New Rate Routine screens.
    1. Add a Web.Rating.RateRoutines.NewVariantIdentifier display key and set the value to New Variant. You can add the display key by adding it to the display_languageCode.properties file in configuration > config > Localizations.
    2. In RateRoutineDV.pcf, add a basic input after the Jurisdiction input. For example, from the Toolbox, go to Basic Inputs and insert an Input with the following properties:

      Property

      Value

      Description

      editable

      canEditIdentifyingFields or copyVersionType == BRANCH

      Whether the input is editable.

      id

      NewVariantIdentifier

      A unique identifier for this widget.

      label

      displaykey.Web.Rating.RateRoutines.NewVariantIdentifier

      The input label.

      value

      rateroutine.NewVariantIdentifier

      Set value to the NewVariantIdentifer property on the CalcRoutineDefinition entity instance.

  2. On the Rate Routine Details screen, change the name of the Create Jurisdiction Variant button to something more descriptive such as Create Variant Rate Routines. This button will now create variants where you can set Jurisdiction and New Variant.
  3. Add a New Variant column in the Search Results on the Rate Routines screen.

    In RateRoutinePanelSet.pcf, add a basic cell just after the Jurisdiction cell. For example, go to Basic Cells and insert a Cell with the following properties:

    Property

    Value

    Description

    id

    RateroutineNewVariantIdentifier

    A unique identifier for this cell.

    label

    displaykey.Web.Rating.RateRoutines.NewVariantIdentifier

    The cell label.

    value

    rateroutine.NewVariantIdentifier

    Set value to the NewVariantIdentifier property on the CalcRoutineDefinition entity instance.

  4. On the Rate Book Details screen, add New Variant to the Included Rate Routines tab.

    In RateBookDetailsScreen.pcf, add a TextCell just after Jurisdiction with the following properties:

    Property

    Value

    Description

    id

    NewVariantIdentifier

    A unique identifier for this cell.

    label

    displaykey.Web.Rating.RateRoutines.NewVariantIdentifier

    The cell label.

    value

    rateroutine.NewVariantIdentifier

    The cell value.

  5. Add New Variant to other rate routine screens where the Jurisdiction variant appears.

What to do next

See also