Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 37 Next »

In this tutorial you will learn, how to add a new price parameter table of type Simple. Simple table has only two fields - Name (which serves as unique key) and Value. and Once created, the table can look in the application page like this:

margin adj empty

Let’s say you have following data file and need to create a table suitable for storage of such data. The number in the second column is a percentage value.

provided data

Create the new price parameter table

From the toolbar menu, navigate to Master Tables  Price Parameters.

It will lead to to a page with list of existing price parameters. In the screenshot below, there are no Price Parameter master tables yet.

page price parameters empty

Click on the Add Parameter button to create a new price parameter master table.

button add parameter

In the dialog, set up

dialog add new price parameter
  • Give the Price Parameter a Name: “MarginAdj”. Enter the name with no spaces. The Name is used in logics to refer to the table, to lookup values in the table. The combination of the Name and Valid After value must be unique across all Price Parameters.

  • Label: “Margin Adjustment”. The label is optional since it is only used for visualization. If no label has been specified, the name will be used as a label by the frontend application.

  • Valid After: “1/1/2021” (or a date prior to today’s date). This date specifies the effective date of the price parameter on price calculations. Consider this value the “Effective Date”. In this example, this price parameter is effective/valid from 1/1/2021.

  • Select the Table Type from the drop-down menu, choose Simple. This selection determines number of columns, and - in case of simple tables - also the data-type of the Name column of newly created table. Tables of simple type only have two columns: one column for the key and the other for the value. The columns in these table types cannot be renamed.

  • Select the Value Type from the drop-down menu, choose Real. This selection determines the data-type of column with Value.

  • Select the Status from the drop-down menu, choose Active. Such table could be looked up during calculations. If you make table inactive then it will "sit" in the system, but you cannot use it for calculations.

  • Select the Format Type: Percent.

Price parameters can have the same Name if they have different Valid After dates. For data lookups during price calculations, the proper "version" of the table will be selected based on the Valid After and calculation date (called Target Date).

Click Add to add this new Price Parameter

Review the new table - when you click on the name of the Price Parameter, it will show the content of the table on the right side.

margin adj empty

Fetch the Price Parameter fields metadata to your project

In case you already have your project set up in IntelliJ and also connection to partition set up, fetch the new fields' metadata to your project, so you can store it to Git.

In Studio, open the PfxFetch tool, select the proper project, environment and partition, then click on Pricing parameters (LT). Refresh the list of price parameters (it will reload from the partition) select the newly created table.

Click Fetch to download the meta to your project.

fetch price parameter attributes
  • No labels