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 72 Next »

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

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

Values

inputs – input fields defined in Pricelist/Pricegrid logic and entered by user on the Parameters page, when defining the pricelist/pricegrid.
headerInputs – input fields defined in Pricelist/Pricegrid header logic and entered and saved by user on the header dashboard-like part of the page.
outputChartDefinition – definition of the chart, displayed in the middle part of the dashboard-like pricelist/grid header
outputs – result values of the pricelist dashboard-like header

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

Example, what’s available from api.currentItem() in the pricelist header logic
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
]
  • No labels