Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this tutorial you will learn how to create a new product extension table and set up its columns and preferences. The result can then look in the user interface like this:

sneak peek pictureImage Removed sneak peek pictureImage Added

Let’s say you need to store data which look like on the screenshot and plan to store them in a product extension table. In this sample, the number in the column Average Cost represents the product cost in Euros.

image 20210923 111437Image Removed image 20210923 111437Image Added

Create New Product Extension Table

In Pricefx navigate to Administration  Configuration  Master Data  Product Master Extension.

On that page, click the Add button to add a new product extension table.

In the dialog, fill in the following:

add new product extensionImage Removed add new product extensionImage Added
  • Name = ProductCost. The name is used in the calculation logic when you need to read data from this table.

  • Label = Product Cost. Used only in the user interface to identify the product extension table.

  • Size = 3. The maximum number of Attribute# fields in a data row. This does not include the out-of-the-box fields, like SKU, etc. In our example, we need only the Average Cost, so we use the lowest value which is 3.

Click OK to save the setup.

new product extensionImage Removed new product extensionImage Added

Select the new Product Extension by clicking its name. Once selected, the right side of the screen displays the current fields of the master table.

product cost fieldsImage Removed product cost fieldsImage Added

Click Edit for the Attribute1 field.

rename and customize columnImage Removed rename and customize columnImage Added
  • Name = AverageCost

  • Label = Average Cost

  • Type = Real

  • Format type = Money (EUR) (Note: this does not set up any currency conversions, it only defines how the value is displayed on the screen.)

Click OK to save the field definition. When the confirmation dialog appears, confirm the change.

View Newly Created Product Extension Table

From the toolbar menu, navigate to Master Data  Product Extensions.

On the Product Extensions page, click the Category drop-down menu.

product extensions categoryImage Removed product extensions categoryImage Added

Review the result. There are no records yet, but you can see the configured fields.

Fetch Product Extension Fields Metadata to Your Project

If you already have your project set up in IntelliJ and the connection to a partition is also set up, fetch the new fields metadata to your project, so that you can store it to Git.

fetch extension attributesImage Removed fetch extension attributesImage Added