How to configure attributes for Create New wizard

Prev Next

You can configure the required attributes for a specific entity type in the Attributes stepper of the Create New wizard.

Sample JSON configuration

Sample JSON to configure the attributes for the Create New wizard.

{
  "metaInfo": {
    "dataIndex": "config",
    "collectionName": "configObjects",
    "responseObjectName": "response"
  },
  "configObjects": [
    {
      "id": "rock-entity-create-v2_pstdsku_commerceUXConfig",
      "name": "rock-entity-create-v2_pstdsku",
      "version": "1.0",
      "type": "commerceUXConfig",
      "properties": {
        "createdByService": "system",
        "createdBy": "system"
      },
      "data": {
        "contexts": [
          {
            "context": {
              "component": "rock-entity-create-v2",
              "entityType": "pstdsku",
              "role": "_DEFAULT"
            },
            "jsonData": {
              "config": {
                "properties": {
                  "attributeNames": [
                    "mdmid",
                    "mdmname",
                    "productid",
                    "upc",
                    "color",
                    "size",
                    "cost",
                    "currency",
                    "itemtype"
                  ]
                }
              }
            }
          }
        ]
      }
    }
  ]
}

To configure the attributes for the Create New wizard:

  1. Download the attached JSON file.

rock-entity-create-v2_pstdsku_commerceUXConfig
1.15 KB
  1. Open the rock-entity-create-v2_pstdsku_commerceUXConfig.json file and specify the following:

Parameters

Details

context

entityType

Specify the entity type for which the component is to be configured. For example, ‘pstdsku’.

role

Specify the role for which the component is to be configured, else _DEFAULT.

Note: By default, _DEFAULT is specified for role, which implies the component is configured for all roles and users.

config > properties

Specify the tab name and set the visibility.

attributeNames

List the internal names of all the attributes that must be displayed for the specified entity type.

  1. Upload the JSON configuration file in the Classic UI. For more information, see How to upload UI Configurations.

    In the Create New dialog, you can view the attributes for creating a product (SKU) based on the configuration.

    ui-configurations-create-new-attributes-step.png