Add the rate routine variant identifier to PCF files
Before you begin
About this task
In Studio, add the rate routine variant identifier to the following PCF files.
Procedure
-
Add New Variant Identifier to the Rate Routine Details and New Rate Routine screens.
-
Add a
Web.Rating.RateRoutines.NewVariantIdentifierdisplay key and set the value toNew Variant. You can add the display key by adding it to the display_languageCode.properties file in . -
In RateRoutineDV.pcf, add a basic input after the
Jurisdictioninput. For example, from the Toolbox, go to Basic Inputs and insert an Input with the following properties:Property
Value
Description
editablecanEditIdentifyingFields or copyVersionType == BRANCHWhether the input is editable.
idNewVariantIdentifierA unique identifier for this widget.
labeldisplaykey.Web.Rating.RateRoutines.NewVariantIdentifierThe input label.
valuerateroutine.NewVariantIdentifierSet value to the
NewVariantIdentiferproperty on the CalcRoutineDefinition entity instance.
-
Add a
- 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.
-
Add a New Variant column in the Search Results on the Rate Routines screen.
In RateRoutinePanelSet.pcf, add a basic cell just after the
Jurisdictioncell. For example, go to Basic Cells and insert a Cell with the following properties:Property
Value
Description
idRateroutineNewVariantIdentifierA unique identifier for this cell.
labeldisplaykey.Web.Rating.RateRoutines.NewVariantIdentifierThe cell label.
valuerateroutine.NewVariantIdentifierSet value to the
NewVariantIdentifierproperty on the CalcRoutineDefinition entity instance. -
On the Rate Book Details screen, add New Variant to the Included Rate Routines tab.
In RateBookDetailsScreen.pcf, add a
TextCelljust after Jurisdiction with the following properties:Property
Value
Description
idNewVariantIdentifierA unique identifier for this cell.
labeldisplaykey.Web.Rating.RateRoutines.NewVariantIdentifierThe cell label.
valuerateroutine.NewVariantIdentifierThe cell value.
- Add New Variant to other rate routine screens where the Jurisdiction variant appears.
What to do next
See also
