Versions Compared

Key

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

Both Pricelist and Pricegrid are storing Price List and Price Grid store the header (speaking about the dashboard-like pricelist price list header) inputs, outputs and chart in a the configuration field of the PricelistPrice List/Pricegrid Grid entity.

Mostly you will need to use the headerInputs, which contains the values entered by user users to the header inputs.

Values

inputsinput Input fields defined in Pricelist/Pricegrid a Price List / Price Grid logic and entered by user users on the Parameters page , when defining the pricelistPrice List/pricegridGrid.
headerInputsinput Input fields defined in Pricelist/Pricegrid a Price List / Price Grid header logic and entered and saved by user users on the header dashboard-like part of the page.
outputChartDefinitiondefinition Definition of the chart, displayed in the middle part of the dashboard-like pricelistPrice List/grid Grid header.
outputsresult Result values of the pricelist Price List dashboard-like header.

This configuration information is stored as a Map, but in a JSON format.

Code Block
languagegroovy
themeMidnight
titleExample, what’s : What is available from api.currentItem() in the pricelist a Price List header logic
linenumbersfalse
Map currentItem = [
        label               : "PricelistHeader",
        configuration       :
                '''
                    {
                      "inputs": [],

                      "headerInputs": [
                        {
                          "name": "SpecialAdjPct",
                          "label": "Enter Special Adjustment (in %)",
                          "type": "USERENTRY",
                          "value": 0.02
                        }
                      ],

                      "outputs": [],

                      "outputChartDefinition": {}
                    }
                ''',
        priceGridType       : "SIMPLE",
        headerTypeUniqueName: "PricelistHeaderType",

        id                  : 363
]